Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00128/0.00128, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001345, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.4 MB / 246.9 MB, free: 9.031 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.5 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08708/0.08825, allocations: 50.53 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008876/0.09716, allocations: 8.212 MB / 365.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004394/0.1016, allocations: 2.727 MB / 368.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008328/0.1025, allocations: 23.94 kB / 368.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001386/0.1039, allocations: 0.4942 MB / 368.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.105, allocations: 421 kB / 369.3 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004529/0.1055, allocations: 235.8 kB / 369.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001334/0.1068, allocations: 1.431 MB / 371 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006793/0.1075, allocations: 0.4929 MB / 371.5 MB, free: 172 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1552/0.2627, allocations: 0.5046 MB / 372 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007977/0.2636, allocations: 0.5788 MB / 372.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002227/0.2638, allocations: 86.62 kB / 372.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004322/0.2642, allocations: 129.8 kB / 372.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.2644, allocations: 229.7 kB / 373 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000603/0.265, allocations: 0.6258 MB / 373.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00142/0.2665, allocations: 1.408 MB / 375 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.2665, allocations: 0 / 375 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2665, allocations: 0 / 375 MB, free: 10.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.997e-05/0.2665, allocations: 1 kB / 375 MB, free: 10.32 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.002614/0.2691, allocations: 1.488 MB / 376.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2692, allocations: 8.594 kB / 376.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007493/0.2699, allocations: 202 kB / 376.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.271, allocations: 0.7504 MB / 377.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.271, allocations: 70.81 kB / 377.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.2712, allocations: 106.8 kB / 377.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.2727, allocations: 0.9394 MB / 378.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/0.2728, allocations: 5.703 kB / 378.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.663e-05/0.2729, allocations: 43.89 kB / 378.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.2729, allocations: 23.94 kB / 378.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.2741, allocations: 0.6532 MB / 379.3 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004831/0.2789, allocations: 3.953 MB / 383.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/0.2796, allocations: 447.5 kB / 383.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005136/0.2801, allocations: 273.4 kB / 383.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/0.2802, allocations: 9.906 kB / 384 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.887e-05/0.2802, allocations: 37.92 kB / 384 MB, free: 6.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.003e-06/0.2802, allocations: 7.938 kB / 384 MB, free: 6.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002851/0.2831, allocations: 1.535 MB / 385.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.2831, allocations: 86.09 kB / 385.6 MB, free: 5.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.2842, allocations: 0.8484 MB / 386.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.2842, allocations: 32.08 kB / 386.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.2845, allocations: 0.5703 MB / 387.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.238e-05/0.2846, allocations: 155.8 kB / 387.2 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.2848, allocations: 136.7 kB / 387.4 MB, free: 4.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.063e-05/0.2849, allocations: 333.5 kB / 387.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/0.2852, allocations: 168.9 kB / 387.8 MB, free: 3.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004393/0.2857, allocations: 479.7 kB / 388.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008465/0.2865, allocations: 0.6662 MB / 389 MB, free: 2.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.2865, allocations: 2.688 kB / 389 MB, free: 2.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001299/0.2878, allocations: 0.79 MB / 389.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.2879, allocations: 10.41 kB / 389.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/0.2879, allocations: 11.77 kB / 389.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.2882, allocations: 83.48 kB / 389.9 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.2887, allocations: 158.5 kB / 390 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/0.2905, allocations: 2.873 MB / 392.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007065/0.2912, allocations: 37.67 kB / 392.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.204e-05/0.2912, allocations: 42.12 kB / 393 MB, free: 15.6 MB / 318.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.000447/0.2917, allocations: 260 kB / 393.2 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.2918, allocations: 90.06 kB / 393.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009738/0.2928, allocations: 0.5079 MB / 393.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.2928, allocations: 4.375 kB / 393.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2928, allocations: 1.062 kB / 393.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2929, allocations: 5.312 kB / 393.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.2951, allocations: 1.48 MB / 395.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.2951, allocations: 2.5 kB / 395.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.2954, allocations: 70.28 kB / 395.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.2956, allocations: 75.89 kB / 395.5 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.359e-05/0.2957, allocations: 14.23 kB / 395.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/0.298, allocations: 2.861 MB / 398.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.298, allocations: 2.688 kB / 398.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.2995, allocations: 0.8001 MB / 399.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/0.2998, allocations: 197.9 kB / 399.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.3, allocations: 8.406 kB / 399.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.3004, allocations: 31.62 kB / 399.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.946e-05/0.3005, allocations: 43.45 kB / 399.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.3006, allocations: 13.62 kB / 399.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008613/0.3014, allocations: 0.5755 MB / 400 MB, free: 10.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3015, allocations: 0 / 400 MB, free: 10.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000986/0.3024, allocations: 208.3 kB / 400.2 MB, free: 10.3 MB / 318.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.0002165/0.3027, allocations: 124.3 kB / 400.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.3039, allocations: 0.7053 MB / 401 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.3039, allocations: 0 / 401 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007046/0.3047, allocations: 457.8 kB / 401.5 MB, free: 9.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.3059, allocations: 218.9 kB / 401.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003231/0.3091, allocations: 2.207 MB / 403.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.3097, allocations: 1.018 MB / 404.9 MB, free: 6.938 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.3099, allocations: 59.72 kB / 405 MB, free: 6.93 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3099, allocations: 0 / 405 MB, free: 6.93 MB / 318.1 MB Notification: Performance of Templates: time 0.02456/0.3345, allocations: 21.35 MB / 426.3 MB, free: 3.434 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches