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.001799/0.001799, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002078/0.002078, allocations: 219.8 kB / 24.53 MB, free: 4.008 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.45/1.45, allocations: 230.5 MB / 258.2 MB, free: 8.012 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 71.88 kB / 378.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2737, allocations: 53.41 MB / 432 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01596/0.2897, allocations: 12.25 MB / 444.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008472/0.2982, allocations: 3.323 MB / 447.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002174/0.3003, allocations: 39.88 kB / 447.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002342/0.3027, allocations: 0.6946 MB / 448.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002561/0.3052, allocations: 0.7872 MB / 449.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009194/0.3062, allocations: 399.5 kB / 449.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003134/0.3093, allocations: 2.417 MB / 451.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.3104, allocations: 0.6539 MB / 452.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00153/0.3119, allocations: 0.9339 MB / 453.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.3131, allocations: 0.984 MB / 454.5 MB, free: 216 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002927/0.3134, allocations: 232 kB / 454.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004597/0.3139, allocations: 259.9 kB / 454.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003524/0.3142, allocations: 462.3 kB / 455.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.3153, allocations: 1.081 MB / 456.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003167/0.3185, allocations: 2.844 MB / 459.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3185, allocations: 4 kB / 459.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3185, allocations: 0 / 459.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.349e-05/0.3185, allocations: 0 / 459.3 MB, free: 11.33 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.003946/0.3225, allocations: 2.137 MB / 461.5 MB, free: 9.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.3225, allocations: 12.03 kB / 461.5 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.963e-05/0.3226, allocations: 39.28 kB / 461.5 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002676/0.3228, allocations: 228.1 kB / 461.7 MB, free: 8.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008946/0.3237, allocations: 291.5 kB / 462 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.3256, allocations: 1.048 MB / 463.1 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.414e-05/0.3257, allocations: 131 kB / 463.2 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/0.3259, allocations: 160 kB / 463.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.3284, allocations: 1.504 MB / 464.8 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.64e-05/0.3285, allocations: 7.953 kB / 464.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/0.3286, allocations: 64 kB / 464.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.433e-05/0.3286, allocations: 39.98 kB / 465 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.3307, allocations: 1.049 MB / 466 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008737/0.3395, allocations: 6.097 MB / 472.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.3411, allocations: 0.5772 MB / 472.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009376/0.342, allocations: 430.2 kB / 473.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.238e-05/0.3421, allocations: 4.656 kB / 473.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.3421, allocations: 47.22 kB / 473.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.136e-06/0.3421, allocations: 0 / 473.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005222/0.3473, allocations: 2.173 MB / 475.3 MB, free: 10.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.758e-05/0.3474, allocations: 115.4 kB / 475.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.3494, allocations: 1.306 MB / 476.7 MB, free: 9.355 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.835e-05/0.3494, allocations: 37.7 kB / 476.8 MB, free: 9.312 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007523/0.3502, allocations: 0.8749 MB / 477.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.3504, allocations: 269.8 kB / 477.9 MB, free: 8.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00032/0.3507, allocations: 210.8 kB / 478.1 MB, free: 7.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3509, allocations: 349.9 kB / 478.5 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006168/0.3515, allocations: 282.5 kB / 478.7 MB, free: 7.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.3526, allocations: 0.7346 MB / 479.5 MB, free: 6.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001735/0.3543, allocations: 1.085 MB / 480.6 MB, free: 5.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.3543, allocations: 4 kB / 480.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002912/0.3573, allocations: 1.26 MB / 481.8 MB, free: 3.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/0.3573, allocations: 14.5 kB / 481.8 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.3573, allocations: 16 kB / 481.9 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005865/0.3579, allocations: 142.9 kB / 482 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000875/0.3588, allocations: 251.6 kB / 482.2 MB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004622/0.3634, allocations: 4.348 MB / 486.6 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.3647, allocations: 51.97 kB / 486.6 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-05/0.3648, allocations: 59.98 kB / 486.7 MB, free: 14.59 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.0007585/0.3655, allocations: 357.4 kB / 487 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.3657, allocations: 151 kB / 487.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.3675, allocations: 0.8217 MB / 488 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3675, allocations: 4 kB / 488 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3676, allocations: 4 kB / 488 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.3676, allocations: 3.984 kB / 488 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004005/0.3716, allocations: 2.293 MB / 490.3 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.3716, allocations: 3.938 kB / 490.3 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005783/0.3722, allocations: 131.8 kB / 490.5 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004431/0.3726, allocations: 134.9 kB / 490.6 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.316e-05/0.3726, allocations: 20 kB / 490.6 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004328/0.377, allocations: 4.485 MB / 495.1 MB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.377, allocations: 4 kB / 495.1 MB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.3795, allocations: 1.313 MB / 496.4 MB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005472/0.3801, allocations: 207.1 kB / 496.6 MB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.3803, allocations: 16 kB / 496.6 MB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006049/0.3809, allocations: 35.97 kB / 496.7 MB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.381, allocations: 72.27 kB / 496.7 MB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.671e-05/0.381, allocations: 23.98 kB / 496.8 MB, free: 3.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.3823, allocations: 0.8781 MB / 497.6 MB, free: 3.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3823, allocations: 0 / 497.6 MB, free: 3.078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001211/0.3835, allocations: 328 kB / 498 MB, free: 2.758 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.002916/0.3865, allocations: 1.886 MB / 499.8 MB, free: 0.793 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002139/0.3886, allocations: 1.084 MB / 0.4892 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3886, allocations: 0 / 0.4892 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3897, allocations: 0.6881 MB / 0.4899 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.3918, allocations: 374.6 kB / 0.4902 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/0.4108, allocations: 11.72 MB / 0.5017 GB, free: 2.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008969/0.4117, allocations: 1.217 MB / 0.5028 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000648/0.4124, allocations: 175.6 kB / 0.503 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007438/0.4131, allocations: 0.6086 MB / 0.5036 GB, free: 132 kB / 414.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4131, allocations: 0 / 0.5036 GB, free: 132 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07793/0.4911, allocations: 32.24 MB / 0.5351 GB, free: 172 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/16.07, allocations: 3.984 kB / 0.5351 GB, free: 168 kB / 446.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 22.568897528981324]