Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 117.7 kB / 17.7 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 191 kB / 18.63 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 50.95 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1022, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009176/0.1114, allocations: 8.211 MB / 359.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004823/0.1163, allocations: 2.692 MB / 362.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006368/0.1169, allocations: 27.88 kB / 362.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001347/0.1183, allocations: 0.5481 MB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.1196, allocations: 480.2 kB / 363.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.1202, allocations: 259.6 kB / 363.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001691/0.1219, allocations: 1.512 MB / 365.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008351/0.1228, allocations: 0.5962 MB / 365.8 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007216/0.1235, allocations: 0.5525 MB / 366.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007109/0.1242, allocations: 0.6106 MB / 367 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.1244, allocations: 140 kB / 367.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003333/0.1247, allocations: 180 kB / 367.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.125, allocations: 290.9 kB / 367.6 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006148/0.1256, allocations: 0.6687 MB / 368.3 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001662/0.1273, allocations: 1.756 MB / 370 MB, free: 1.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1273, allocations: 0 / 370 MB, free: 1.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1273, allocations: 7.938 kB / 370 MB, free: 1.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.705e-05/0.1273, allocations: 0 / 370 MB, free: 1.09 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.1797/0.3071, allocations: 1.473 MB / 371.5 MB, free: 25.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.3071, allocations: 13.77 kB / 371.5 MB, free: 25.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008467/0.308, allocations: 192.7 kB / 371.7 MB, free: 25.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.3094, allocations: 0.7555 MB / 372.4 MB, free: 24.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.048e-05/0.3095, allocations: 73.19 kB / 372.5 MB, free: 24.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.3096, allocations: 98.72 kB / 372.6 MB, free: 24.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.3113, allocations: 0.9417 MB / 373.6 MB, free: 24.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/0.3113, allocations: 10.98 kB / 373.6 MB, free: 24.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.561e-05/0.3114, allocations: 47.12 kB / 373.6 MB, free: 24.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.452e-05/0.3114, allocations: 23.62 kB / 373.6 MB, free: 24.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.3129, allocations: 0.6477 MB / 374.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004939/0.3178, allocations: 3.906 MB / 378.2 MB, free: 21.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/0.3185, allocations: 445.4 kB / 378.6 MB, free: 21.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.3191, allocations: 270.2 kB / 378.9 MB, free: 21.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.319e-05/0.3192, allocations: 6.938 kB / 378.9 MB, free: 21.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.3192, allocations: 41.16 kB / 378.9 MB, free: 21.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.505e-06/0.3192, allocations: 2.344 kB / 378.9 MB, free: 21.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002765/0.322, allocations: 1.544 MB / 380.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.322, allocations: 81.58 kB / 380.6 MB, free: 20.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.3231, allocations: 0.8435 MB / 381.4 MB, free: 19.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.3231, allocations: 36.33 kB / 381.4 MB, free: 19.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/0.3234, allocations: 0.565 MB / 382 MB, free: 19.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.846e-05/0.3235, allocations: 161.9 kB / 382.2 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.3237, allocations: 134.5 kB / 382.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.148e-05/0.3238, allocations: 333.2 kB / 382.6 MB, free: 18.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.3241, allocations: 171.4 kB / 382.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004407/0.3245, allocations: 475.4 kB / 383.2 MB, free: 18.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007572/0.3253, allocations: 0.6785 MB / 383.9 MB, free: 17.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.3253, allocations: 3.094 kB / 383.9 MB, free: 17.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001335/0.3267, allocations: 0.7847 MB / 384.7 MB, free: 17.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.3267, allocations: 9.781 kB / 384.7 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.3267, allocations: 10.25 kB / 384.7 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002659/0.327, allocations: 82.38 kB / 384.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.3275, allocations: 157.6 kB / 385 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.3292, allocations: 3.145 MB / 388.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005973/0.3299, allocations: 31.28 kB / 388.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.3299, allocations: 43.73 kB / 388.2 MB, free: 14.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003327/0.3302, allocations: 266.4 kB / 388.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.3304, allocations: 89.81 kB / 388.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009128/0.3313, allocations: 0.5038 MB / 389 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3313, allocations: 7.938 kB / 389 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3313, allocations: 1.859 kB / 389 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3313, allocations: 3.062 kB / 389.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.3333, allocations: 1.472 MB / 390.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.3334, allocations: 3.266 kB / 390.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.3337, allocations: 73.98 kB / 390.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.3339, allocations: 83.88 kB / 390.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.3339, allocations: 8.141 kB / 390.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001539/0.3354, allocations: 3.122 MB / 393.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3355, allocations: 1.5 kB / 393.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.3366, allocations: 0.7988 MB / 394.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002485/0.3369, allocations: 199 kB / 394.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.633e-05/0.337, allocations: 14.28 kB / 394.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004011/0.3374, allocations: 27.56 kB / 394.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/0.3375, allocations: 34.92 kB / 394.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.3375, allocations: 18.66 kB / 394.9 MB, free: 9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006705/0.3382, allocations: 0.573 MB / 395.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3382, allocations: 1.438 kB / 395.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008959/0.3391, allocations: 211.2 kB / 395.7 MB, free: 8.656 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002101/0.3393, allocations: 126.3 kB / 395.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.3405, allocations: 0.7064 MB / 396.5 MB, free: 8.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3405, allocations: 3.938 kB / 396.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005413/0.341, allocations: 455.7 kB / 397 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.3421, allocations: 229.6 kB / 397.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.3449, allocations: 1.723 MB / 398.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005038/0.3454, allocations: 1.016 MB / 399.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004265/0.3459, allocations: 107.5 kB / 400 MB, free: 5.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.346, allocations: 64.81 kB / 400.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.346, allocations: 0 / 400.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of Templates: time 0.01936/0.3654, allocations: 10.7 MB / 410.8 MB, free: 12.43 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches