Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001366/0.001366, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2378, allocations: 50.55 MB / 409.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01884/0.2567, allocations: 18.85 MB / 428.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009999/0.2668, allocations: 5.721 MB / 434.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002455/0.2693, allocations: 63.81 kB / 434.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003688/0.273, allocations: 1.312 MB / 435.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004079/0.2771, allocations: 1.205 MB / 437.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001793/0.2789, allocations: 0.6707 MB / 437.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004955/0.2839, allocations: 3.927 MB / 441.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002295/0.2862, allocations: 1.588 MB / 443.3 MB, free: 28 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002083/0.2883, allocations: 1.471 MB / 444.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002166/0.2905, allocations: 1.59 MB / 446.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006399/0.2911, allocations: 372 kB / 446.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.2922, allocations: 412 kB / 447.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006292/0.2928, allocations: 0.7317 MB / 447.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.2947, allocations: 1.765 MB / 449.6 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004621/0.2993, allocations: 4.601 MB / 454.2 MB, free: 5.062 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2994, allocations: 0 / 454.2 MB, free: 5.062 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2994, allocations: 0 / 454.2 MB, free: 5.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.997e-05/0.2995, allocations: 0 / 454.2 MB, free: 5.062 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005777/0.3052, allocations: 3.336 MB / 457.5 MB, free: 1.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.3053, allocations: 12.02 kB / 457.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001627/0.3069, allocations: 479.7 kB / 458 MB, free: 1.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002886/0.3098, allocations: 1.735 MB / 459.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.31, allocations: 193.2 kB / 459.9 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/0.3103, allocations: 267.7 kB / 460.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004183/0.3145, allocations: 2.466 MB / 462.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.149e-05/0.3146, allocations: 15.89 kB / 462.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/0.3148, allocations: 112 kB / 462.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.437e-05/0.3148, allocations: 68 kB / 462.9 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003049/0.3179, allocations: 1.642 MB / 464.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/0.3317, allocations: 10.55 MB / 475.1 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.3332, allocations: 1.054 MB / 476.1 MB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005903/0.3338, allocations: 367.3 kB / 476.5 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.456e-05/0.3339, allocations: 12.66 kB / 476.5 MB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.3339, allocations: 47.22 kB / 476.5 MB, free: 13.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.846e-06/0.3339, allocations: 4 kB / 476.5 MB, free: 13.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.005107/0.339, allocations: 2.913 MB / 479.4 MB, free: 10.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/0.3391, allocations: 167.2 kB / 479.6 MB, free: 10.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002937/0.3421, allocations: 2.206 MB / 481.8 MB, free: 8.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.62e-05/0.3422, allocations: 41.7 kB / 481.9 MB, free: 8.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/0.3433, allocations: 1.462 MB / 483.3 MB, free: 6.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.3435, allocations: 335.4 kB / 483.6 MB, free: 6.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003783/0.3439, allocations: 327.1 kB / 484 MB, free: 6.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.344, allocations: 317 kB / 484.3 MB, free: 5.824 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006782/0.3447, allocations: 372.7 kB / 484.6 MB, free: 5.457 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.3459, allocations: 1.227 MB / 485.9 MB, free: 3.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.3479, allocations: 1.73 MB / 487.6 MB, free: 1.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.3479, allocations: 8 kB / 487.6 MB, free: 1.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002985/0.3509, allocations: 1.834 MB / 489.4 MB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.351, allocations: 20 kB / 489.5 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.351, allocations: 28 kB / 489.5 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005054/0.3515, allocations: 160 kB / 489.6 MB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.3527, allocations: 411.3 kB / 490 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004099/0.3568, allocations: 5.754 MB / 495.8 MB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.3583, allocations: 95.94 kB / 495.9 MB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.3585, allocations: 95.94 kB / 496 MB, free: 8.672 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001337/0.3598, allocations: 0.7265 MB / 496.7 MB, free: 7.941 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001174/0.361, allocations: 1.227 MB / 497.9 MB, free: 6.297 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001898/0.3629, allocations: 1.699 MB / 499.6 MB, free: 4.184 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.285e-05/0.3629, allocations: 11.98 kB / 499.6 MB, free: 4.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.00297/0.3659, allocations: 1.815 MB / 0.4897 GB, free: 2.336 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3659, allocations: 16 kB / 0.4897 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.366, allocations: 36.08 kB / 0.4898 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00044/0.3664, allocations: 151.4 kB / 0.4899 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.3676, allocations: 415.2 kB / 0.4903 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003984/0.3715, allocations: 5.762 MB / 0.4959 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.3731, allocations: 83.88 kB / 0.496 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.3733, allocations: 96 kB / 0.4961 GB, free: 11.22 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003612/0.3736, allocations: 331.6 kB / 0.4964 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003213/0.3739, allocations: 225.2 kB / 0.4966 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.3757, allocations: 0.9107 MB / 0.4975 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3757, allocations: 12 kB / 0.4975 GB, free: 9.723 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3757, allocations: 0 / 0.4975 GB, free: 9.723 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.3757, allocations: 11.86 kB / 0.4975 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004608/0.3803, allocations: 3.109 MB / 0.5006 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.3804, allocations: 8 kB / 0.5006 GB, free: 6.445 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006097/0.381, allocations: 159.7 kB / 0.5007 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003962/0.3814, allocations: 127.9 kB / 0.5009 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.3815, allocations: 24 kB / 0.5009 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003925/0.3854, allocations: 5.714 MB / 0.5065 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/0.3854, allocations: 12 kB / 0.5065 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.3878, allocations: 1.484 MB / 0.5079 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007251/0.3885, allocations: 390.1 kB / 0.5083 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/0.3888, allocations: 27.98 kB / 0.5083 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009068/0.3897, allocations: 55.91 kB / 0.5084 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.3898, allocations: 84.28 kB / 0.5085 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.3899, allocations: 32 kB / 0.5085 GB, free: 13.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002124/0.392, allocations: 1.454 MB / 0.5099 GB, free: 12.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.392, allocations: 0 / 0.5099 GB, free: 12.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002827/0.3949, allocations: 0.9414 MB / 0.5108 GB, free: 11.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002544/0.3951, allocations: 155 kB / 0.511 GB, free: 11.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003833/0.399, allocations: 2.689 MB / 0.5136 GB, free: 8.312 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/0.399, allocations: 8.062 kB / 0.5136 GB, free: 8.305 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.4001, allocations: 0.8155 MB / 0.5144 GB, free: 7.438 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/0.4027, allocations: 0.6023 MB / 0.515 GB, free: 6.852 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006253/0.4089, allocations: 4.213 MB / 0.5191 GB, free: 2.531 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/0.4101, allocations: 1.563 MB / 0.5206 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004094/0.4106, allocations: 151.4 kB / 0.5208 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4106, allocations: 0 / 0.5208 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of Templates: time 0.235/0.6456, allocations: 78.92 MB / 0.5978 GB, free: 68.23 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches