Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 157.6 kB / 23.95 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/2.105e-05, allocations: 2.281 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01293/0.01295, allocations: 10.25 MB / 335.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006273/0.01922, allocations: 3.097 MB / 338.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000855/0.02008, allocations: 42.84 kB / 338.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.02158, allocations: 0.6314 MB / 339 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.02315, allocations: 0.7526 MB / 339.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000764/0.02391, allocations: 409.7 kB / 340.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002516/0.02643, allocations: 2.335 MB / 342.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.02743, allocations: 0.599 MB / 343.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001747/0.02918, allocations: 1.321 MB / 344.4 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009701/0.03015, allocations: 0.6542 MB / 345.1 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003047/0.03046, allocations: 216 kB / 345.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005009/0.03096, allocations: 259.9 kB / 345.6 MB, free: 408 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003795/0.03134, allocations: 438.3 kB / 346 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008247/0.03216, allocations: 0.6976 MB / 346.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002917/0.03508, allocations: 2.683 MB / 349.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.03508, allocations: 0 / 349.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.03508, allocations: 0 / 349.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.685e-05/0.03511, allocations: 0 / 349.4 MB, free: 12.58 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003591/0.0387, allocations: 2.018 MB / 351.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.03875, allocations: 11.98 kB / 351.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008747/0.03962, allocations: 267.6 kB / 351.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001739/0.04136, allocations: 0.9756 MB / 352.6 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.04146, allocations: 119.4 kB / 352.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000227/0.04169, allocations: 156.3 kB / 352.9 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002713/0.0444, allocations: 1.596 MB / 354.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.614e-05/0.04446, allocations: 15.95 kB / 354.5 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.04459, allocations: 64 kB / 354.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-05/0.04463, allocations: 36 kB / 354.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.04663, allocations: 0.9785 MB / 355.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007916/0.05455, allocations: 5.693 MB / 361.3 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009084/0.05546, allocations: 368.9 kB / 361.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004563/0.05591, allocations: 216.8 kB / 361.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.05595, allocations: 4.5 kB / 361.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005717/0.05652, allocations: 317.2 kB / 362.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.05652, allocations: 4 kB / 362.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003371/0.05989, allocations: 1.544 MB / 363.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.06001, allocations: 162.7 kB / 363.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.06154, allocations: 1.118 MB / 365 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.736e-05/0.06159, allocations: 37.7 kB / 365 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000733/0.06232, allocations: 0.8966 MB / 365.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.06251, allocations: 214.3 kB / 366.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003188/0.06283, allocations: 214.8 kB / 366.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.06302, allocations: 357.9 kB / 366.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005719/0.06359, allocations: 256.2 kB / 367 MB, free: 10.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.06464, allocations: 0.9289 MB / 367.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.06617, allocations: 1.125 MB / 369 MB, free: 7.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.06618, allocations: 12 kB / 369 MB, free: 7.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002145/0.06832, allocations: 1.189 MB / 370.2 MB, free: 6.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.06837, allocations: 38.48 kB / 370.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/0.0684, allocations: 20 kB / 370.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/0.06864, allocations: 65.7 kB / 370.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008407/0.06948, allocations: 267.5 kB / 370.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002233/0.07171, allocations: 2.52 MB / 373.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009285/0.07264, allocations: 59.94 kB / 373.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-05/0.07273, allocations: 63.98 kB / 373.2 MB, free: 3.223 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006457/0.07337, allocations: 377.2 kB / 373.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.07354, allocations: 123.2 kB / 373.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.07472, allocations: 0.5302 MB / 374.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.07473, allocations: 11.94 kB / 374.3 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.07473, allocations: 0 / 374.3 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.07474, allocations: 3.984 kB / 374.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.07738, allocations: 1.544 MB / 375.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.07739, allocations: 8.406 kB / 375.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.07785, allocations: 107.8 kB / 375.9 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/0.07801, allocations: 45.69 kB / 376 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.07804, allocations: 20 kB / 376 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002083/0.08013, allocations: 2.482 MB / 378.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.08013, allocations: 4 kB / 378.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.08167, allocations: 0.907 MB / 379.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003904/0.08206, allocations: 159.2 kB / 379.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.0822, allocations: 19.98 kB / 379.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005323/0.08273, allocations: 27.98 kB / 379.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.08285, allocations: 63.72 kB / 379.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.08288, allocations: 20 kB / 379.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.08395, allocations: 0.7122 MB / 380.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08395, allocations: 0 / 380.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001116/0.08506, allocations: 304 kB / 380.7 MB, free: 11.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0002422/0.08531, allocations: 135 kB / 380.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.08714, allocations: 0.9283 MB / 381.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.08715, allocations: 5.938 kB / 381.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007265/0.08788, allocations: 454 kB / 382.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.08928, allocations: 305.8 kB / 382.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004207/0.09349, allocations: 2.397 MB / 384.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.09422, allocations: 0.5961 MB / 385.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005712/0.09479, allocations: 154.1 kB / 385.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.09498, allocations: 80.48 kB / 385.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of SimCode: time 1.272e-06/0.09499, allocations: 0 / 385.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of Templates: time 0.02863/0.1236, allocations: 14.29 MB / 400 MB, free: 8.094 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.2343539744615555]