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.00148/0.00148, allocations: 97.78 kB / 17 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002209/0.002208, allocations: 193.6 kB / 17.91 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002494/0.0002497, allocations: 8 kB / 307.1 MB, free: 1.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.09679, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1825/0.2793, allocations: 16.74 MB / 375.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008577/0.2879, allocations: 5.388 MB / 380.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001924/0.2899, allocations: 65.44 kB / 380.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002674/0.2926, allocations: 1.055 MB / 381.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003244/0.2958, allocations: 0.9907 MB / 382.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.2971, allocations: 428.2 kB / 383.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004016/0.3011, allocations: 3.547 MB / 386.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001902/0.303, allocations: 1.161 MB / 388 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002388/0.3054, allocations: 1.164 MB / 389.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.307, allocations: 1.302 MB / 390.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003112/0.3074, allocations: 173.7 kB / 390.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006536/0.308, allocations: 213.8 kB / 390.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003908/0.3084, allocations: 0.4982 MB / 391.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006377/0.3091, allocations: 0.6335 MB / 392 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002512/0.3116, allocations: 3.629 MB / 395.6 MB, free: 3.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3116, allocations: 0 / 395.6 MB, free: 3.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3116, allocations: 1.188 kB / 395.6 MB, free: 3.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.879e-05/0.3116, allocations: 0 / 395.6 MB, free: 3.293 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.003991/0.3156, allocations: 2.842 MB / 398.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3157, allocations: 8.25 kB / 398.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/0.3171, allocations: 489.5 kB / 398.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002495/0.3196, allocations: 1.637 MB / 400.6 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.3198, allocations: 193.4 kB / 400.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000311/0.3201, allocations: 261.4 kB / 401 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004189/0.3243, allocations: 2.459 MB / 403.5 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-05/0.3244, allocations: 14.08 kB / 403.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.3246, allocations: 106.5 kB / 403.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.3246, allocations: 65.38 kB / 403.7 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002913/0.3275, allocations: 1.642 MB / 405.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/0.3412, allocations: 10.7 MB / 416 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.3425, allocations: 1.061 MB / 417.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005727/0.3431, allocations: 368.5 kB / 417.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.784e-05/0.3432, allocations: 12.64 kB / 417.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.3432, allocations: 43.17 kB / 417.5 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 2.545e-06/0.3432, allocations: 0 / 417.5 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.005235/0.3485, allocations: 2.956 MB / 420.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.331e-05/0.3486, allocations: 171.2 kB / 420.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003013/0.3516, allocations: 2.182 MB / 422.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.531e-05/0.3516, allocations: 45.64 kB / 422.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.3527, allocations: 1.474 MB / 424.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.353, allocations: 335.4 kB / 424.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.632e-05/0.353, allocations: 36 kB / 424.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3532, allocations: 369.9 kB / 425 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000658/0.3538, allocations: 367.8 kB / 425.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.3551, allocations: 1.239 MB / 426.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000916/0.356, allocations: 0.5728 MB / 427.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.356, allocations: 12 kB / 427.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002975/0.359, allocations: 1.839 MB / 429 MB, free: 4.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006871/0.3597, allocations: 0.9496 MB / 430 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-05/0.3598, allocations: 42.06 kB / 430 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005345/0.3603, allocations: 155.4 kB / 430.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.3615, allocations: 427.2 kB / 430.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003946/0.3654, allocations: 5.353 MB / 436 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/0.3674, allocations: 96.03 kB / 436.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.3675, allocations: 88 kB / 436.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.076e-06/0.3675, allocations: 4 kB / 436.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002564/0.3701, allocations: 1.577 MB / 437.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/0.3701, allocations: 32 kB / 437.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004225/0.3706, allocations: 160.1 kB / 437.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.3717, allocations: 407.3 kB / 438.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003849/0.3755, allocations: 5.344 MB / 443.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.3771, allocations: 83.88 kB / 443.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.3772, allocations: 96 kB / 443.8 MB, free: 4.234 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001089/0.3783, allocations: 0.5785 MB / 444.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.3786, allocations: 233.1 kB / 444.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.3802, allocations: 0.9339 MB / 445.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.3802, allocations: 11.98 kB / 445.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3802, allocations: 4 kB / 445.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3802, allocations: 6.172 kB / 445.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004485/0.3847, allocations: 3.14 MB / 448.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.3848, allocations: 8 kB / 448.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005913/0.3854, allocations: 159.7 kB / 448.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003727/0.3857, allocations: 127.5 kB / 449 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/0.3858, allocations: 20 kB / 449 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003721/0.3895, allocations: 5.312 MB / 454.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.3895, allocations: 12.17 kB / 454.4 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.3918, allocations: 1.506 MB / 455.9 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007452/0.3925, allocations: 390.1 kB / 456.2 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/0.3928, allocations: 24 kB / 456.3 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008557/0.3937, allocations: 59.95 kB / 456.3 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3938, allocations: 80.38 kB / 456.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.3938, allocations: 35.92 kB / 456.4 MB, free: 6.773 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002175/0.396, allocations: 1.434 MB / 457.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.396, allocations: 0 / 457.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003037/0.3991, allocations: 0.9375 MB / 458.8 MB, free: 4.391 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002421/0.3993, allocations: 149.4 kB / 459 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003885/0.4032, allocations: 2.701 MB / 461.7 MB, free: 1.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.4033, allocations: 4.125 kB / 461.7 MB, free: 1.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.4043, allocations: 0.8233 MB / 462.5 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/0.4074, allocations: 0.5697 MB / 463.1 MB, free: 8 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007341/0.4148, allocations: 5.087 MB / 468.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.416, allocations: 1.567 MB / 469.7 MB, free: 9.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001515/0.4175, allocations: 323.2 kB / 470 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/0.4178, allocations: 139.4 kB / 470.2 MB, free: 8.77 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4178, allocations: 0 / 470.2 MB, free: 8.77 MB / 382.1 MB Notification: Performance of Templates: time 0.0443/0.4621, allocations: 25.96 MB / 496.1 MB, free: 15.07 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins/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