Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001784/0.001784, allocations: 110.4 kB / 21.23 MB, free: 0.5312 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.002301/0.002301, allocations: 214.8 kB / 24.54 MB, free: 3.922 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.482/1.482, allocations: 230.3 MB / 258 MB, free: 8.234 MB / 206.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.88 kB / 378.8 MB, free: 2.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2645, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01477/0.2793, allocations: 12.25 MB / 444.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007044/0.2864, allocations: 3.327 MB / 447.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001981/0.2883, allocations: 39.88 kB / 447.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.2903, allocations: 0.6907 MB / 448.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002143/0.2924, allocations: 0.7872 MB / 449.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008525/0.2933, allocations: 399.5 kB / 449.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002934/0.2962, allocations: 2.424 MB / 452 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.2973, allocations: 0.6539 MB / 452.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001544/0.2989, allocations: 0.9378 MB / 453.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.3, allocations: 0.9801 MB / 454.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000288/0.3003, allocations: 228 kB / 454.8 MB, free: 256 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000534/0.3008, allocations: 268 kB / 455.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003906/0.3012, allocations: 462.2 kB / 455.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001233/0.3025, allocations: 1.073 MB / 456.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.3057, allocations: 2.841 MB / 459.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3057, allocations: 4 kB / 459.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3057, allocations: 0 / 459.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.593e-05/0.3058, allocations: 0 / 459.5 MB, free: 11.6 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003998/0.3098, allocations: 2.141 MB / 461.6 MB, free: 9.418 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3098, allocations: 12.03 kB / 461.6 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009383/0.3107, allocations: 295.5 kB / 461.9 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.3126, allocations: 1.048 MB / 463 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.3127, allocations: 119.4 kB / 463.1 MB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002318/0.3129, allocations: 159.9 kB / 463.2 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002765/0.3157, allocations: 1.508 MB / 464.7 MB, free: 6.184 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.022e-05/0.3157, allocations: 11.89 kB / 464.7 MB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.3159, allocations: 64 kB / 464.8 MB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.02e-05/0.3159, allocations: 40 kB / 464.8 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002187/0.3181, allocations: 1.045 MB / 465.9 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008549/0.3267, allocations: 6.105 MB / 472 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.3283, allocations: 0.5726 MB / 472.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00099/0.3293, allocations: 434.4 kB / 473 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.324e-05/0.3293, allocations: 12.8 kB / 473 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.3294, allocations: 43.22 kB / 473 MB, free: 13.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.164e-06/0.3294, allocations: 0 / 473 MB, free: 13.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005249/0.3346, allocations: 2.169 MB / 475.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.3347, allocations: 115.5 kB / 475.3 MB, free: 11.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001884/0.3366, allocations: 1.302 MB / 476.6 MB, free: 9.887 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.015e-05/0.3366, allocations: 41.7 kB / 476.7 MB, free: 9.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007067/0.3373, allocations: 0.871 MB / 477.5 MB, free: 8.961 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.3376, allocations: 269.7 kB / 477.8 MB, free: 8.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.3379, allocations: 214.8 kB / 478 MB, free: 8.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.338, allocations: 345.9 kB / 478.4 MB, free: 8.137 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006659/0.3387, allocations: 286.4 kB / 478.6 MB, free: 7.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.3397, allocations: 0.7385 MB / 479.4 MB, free: 6.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.3415, allocations: 1.081 MB / 480.5 MB, free: 5.617 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.3415, allocations: 4 kB / 480.5 MB, free: 5.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002682/0.3442, allocations: 1.268 MB / 481.7 MB, free: 4.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.3442, allocations: 12 kB / 481.7 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.3442, allocations: 12 kB / 481.7 MB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005536/0.3448, allocations: 135 kB / 481.9 MB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008885/0.3457, allocations: 255.6 kB / 482.1 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004494/0.3502, allocations: 4.324 MB / 486.5 MB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.3512, allocations: 64.03 kB / 486.5 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.132e-05/0.3513, allocations: 56 kB / 486.6 MB, free: 15.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006455/0.3519, allocations: 357.6 kB / 486.9 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.3521, allocations: 151 kB / 487.1 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.3541, allocations: 0.8256 MB / 487.9 MB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.3541, allocations: 15.88 kB / 487.9 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3541, allocations: 0 / 487.9 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.3541, allocations: 3.984 kB / 487.9 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004185/0.3583, allocations: 2.301 MB / 490.2 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.3583, allocations: 4 kB / 490.2 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006116/0.3589, allocations: 127.8 kB / 490.3 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.3594, allocations: 138.8 kB / 490.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.954e-05/0.3594, allocations: 20 kB / 490.5 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004697/0.3641, allocations: 4.473 MB / 495 MB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.3641, allocations: 4 kB / 495 MB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002712/0.3668, allocations: 1.305 MB / 496.3 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005495/0.3674, allocations: 211 kB / 496.5 MB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.3676, allocations: 16 kB / 496.5 MB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006493/0.3682, allocations: 39.97 kB / 496.5 MB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.3684, allocations: 68.27 kB / 496.6 MB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.3684, allocations: 24 kB / 496.6 MB, free: 4.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001385/0.3698, allocations: 0.8742 MB / 497.5 MB, free: 3.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3698, allocations: 4 kB / 497.5 MB, free: 3.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001273/0.3711, allocations: 331.9 kB / 497.8 MB, free: 3.293 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000266/0.3713, allocations: 150 kB / 498 MB, free: 3.145 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.3734, allocations: 1.081 MB / 499.1 MB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3734, allocations: 0 / 499.1 MB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3745, allocations: 0.6878 MB / 499.7 MB, free: 1.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.3761, allocations: 367.4 kB / 0.4884 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.3816, allocations: 2.951 MB / 0.4913 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000941/0.3825, allocations: 1.221 MB / 0.4925 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006005/0.3831, allocations: 175.6 kB / 0.4926 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.3833, allocations: 91.42 kB / 0.4927 GB, free: 12.41 MB / 414.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3833, allocations: 3.938 kB / 0.4927 GB, free: 12.4 MB / 414.1 MB Notification: Performance of Templates: time 0.03586/0.4192, allocations: 18.83 MB / 0.5111 GB, free: 9.742 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.43834191467613]