Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 75.77 kB / 22.45 MB, free: 2.094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 158.9 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9049/0.9049, allocations: 158.6 MB / 187.5 MB, free: 2.949 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.742e-05, allocations: 2.312 kB / 251.1 MB, free: 7.793 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007149/0.007167, allocations: 8.097 MB / 259.2 MB, free: 15.65 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00392/0.01109, allocations: 2.681 MB / 261.9 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000658/0.01174, allocations: 27.88 kB / 261.9 MB, free: 12.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.01286, allocations: 0.5246 MB / 262.5 MB, free: 12.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008429/0.01371, allocations: 0.5272 MB / 263 MB, free: 11.87 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003503/0.01406, allocations: 263.5 kB / 263.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.01515, allocations: 1.564 MB / 264.8 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004348/0.01559, allocations: 371.3 kB / 265.2 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006996/0.01628, allocations: 0.8845 MB / 266 MB, free: 8.766 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004323/0.01672, allocations: 494.6 kB / 266.5 MB, free: 8.281 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001167/0.01683, allocations: 140 kB / 266.7 MB, free: 8.145 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.01705, allocations: 175.9 kB / 266.8 MB, free: 7.973 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.0172, allocations: 294.9 kB / 267.1 MB, free: 7.684 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.01752, allocations: 474.8 kB / 267.6 MB, free: 7.219 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008675/0.01839, allocations: 0.9496 MB / 268.5 MB, free: 6.266 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.01839, allocations: 0 / 268.5 MB, free: 6.266 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01839, allocations: 0 / 268.5 MB, free: 6.266 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.0184, allocations: 0 / 268.5 MB, free: 6.266 MB / 250.7 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.001508/0.01991, allocations: 1.55 MB / 270.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.01995, allocations: 11.98 kB / 270.1 MB, free: 4.664 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004505/0.0204, allocations: 276 kB / 270.4 MB, free: 4.395 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008023/0.0212, allocations: 0.7005 MB / 271.1 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.02124, allocations: 70 kB / 271.1 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.226e-05/0.02133, allocations: 104 kB / 271.2 MB, free: 3.488 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009232/0.02226, allocations: 0.8317 MB / 272.1 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.02228, allocations: 4 kB / 272.1 MB, free: 2.594 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-05/0.02234, allocations: 40 kB / 272.1 MB, free: 2.555 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.02236, allocations: 28 kB / 272.1 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005895/0.02294, allocations: 363.7 kB / 272.5 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003061/0.02601, allocations: 3.651 MB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.02639, allocations: 278.9 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.0267, allocations: 198.4 kB / 276.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.02673, allocations: 11.98 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.02675, allocations: 37.39 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.973e-06/0.02675, allocations: 0 / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001515/0.02827, allocations: 1.046 MB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.02831, allocations: 85.09 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006473/0.02895, allocations: 0.7725 MB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.02898, allocations: 33.7 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002983/0.02928, allocations: 0.6465 MB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.324e-05/0.02936, allocations: 170.6 kB / 279.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.02948, allocations: 140.2 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.02965, allocations: 0.5703 MB / 280.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.02979, allocations: 85.92 kB / 280.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.03012, allocations: 0.5252 MB / 280.7 MB, free: 9.414 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.03064, allocations: 0.6344 MB / 281.4 MB, free: 8.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.03064, allocations: 3.938 kB / 281.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000738/0.03138, allocations: 0.6521 MB / 282 MB, free: 7.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.0314, allocations: 12 kB / 282 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.03141, allocations: 12.03 kB / 282 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002013/0.03161, allocations: 71.34 kB / 282.1 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.0319, allocations: 155.7 kB / 282.3 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.03361, allocations: 3.861 MB / 286.1 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.03388, allocations: 32.16 kB / 286.2 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.021e-05/0.03391, allocations: 36 kB / 286.2 MB, free: 3.5 MB / 266.7 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.0002072/0.03412, allocations: 212.2 kB / 286.4 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-05/0.03421, allocations: 99.44 kB / 286.5 MB, free: 3.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004731/0.03468, allocations: 384.5 kB / 286.9 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.03469, allocations: 7.938 kB / 286.9 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.03469, allocations: 0 / 286.9 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.03469, allocations: 4.109 kB / 286.9 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.03589, allocations: 1.181 MB / 288.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.03589, allocations: 0 / 288.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.03607, allocations: 75.83 kB / 288.1 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.03621, allocations: 75.48 kB / 288.2 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.03623, allocations: 8 kB / 288.2 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.03777, allocations: 3.849 MB / 292.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.03777, allocations: 4 kB / 292.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006232/0.03839, allocations: 0.6642 MB / 292.7 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.03855, allocations: 127.4 kB / 292.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.0386, allocations: 8 kB / 292.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.0388, allocations: 27.98 kB / 292.9 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.03886, allocations: 35.88 kB / 292.9 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.03888, allocations: 12 kB / 292.9 MB, free: 12.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004208/0.0393, allocations: 486.9 kB / 293.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.0393, allocations: 0 / 293.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005517/0.03985, allocations: 208 kB / 293.6 MB, free: 11.65 MB / 282.7 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.0002031/0.04005, allocations: 127.1 kB / 293.7 MB, free: 11.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006936/0.04075, allocations: 0.6871 MB / 294.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.04075, allocations: 1.875 kB / 294.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003429/0.04109, allocations: 0.4887 MB / 294.9 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006019/0.04169, allocations: 210.9 kB / 295.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.0438, allocations: 1.643 MB / 296.8 MB, free: 8.348 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.04392, allocations: 171.5 kB / 296.9 MB, free: 8.156 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002183/0.04414, allocations: 98.67 kB / 297 MB, free: 8.055 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.771e-05/0.04423, allocations: 56.48 kB / 297.1 MB, free: 8 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.04423, allocations: 0 / 297.1 MB, free: 8 MB / 282.7 MB Notification: Performance of Templates: time 0.01327/0.0575, allocations: 10.32 MB / 307.4 MB, free: 13.71 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0493949640076607]