Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001233/0.001233, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001372/0.001372, allocations: 206.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 43.92 kB / 377.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2319, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01352/0.2454, allocations: 10.56 MB / 441.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006305/0.2517, allocations: 3.14 MB / 444.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.2531, allocations: 43.81 kB / 444.8 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.2548, allocations: 0.64 MB / 445.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001987/0.2568, allocations: 0.7911 MB / 446.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000828/0.2577, allocations: 403.6 kB / 446.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002766/0.2604, allocations: 2.412 MB / 449.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001034/0.2615, allocations: 0.65 MB / 449.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.2628, allocations: 0.9417 MB / 450.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.264, allocations: 0.9839 MB / 451.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002737/0.2643, allocations: 228 kB / 451.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004529/0.2647, allocations: 275.9 kB / 452.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003804/0.2651, allocations: 462.4 kB / 452.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000906/0.266, allocations: 0.8711 MB / 453.5 MB, free: 140 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003048/0.2691, allocations: 2.86 MB / 456.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2691, allocations: 0 / 456.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2691, allocations: 0 / 456.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.508e-05/0.2691, allocations: 0 / 456.3 MB, free: 13.26 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.003967/0.2731, allocations: 2.137 MB / 458.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.2731, allocations: 11.97 kB / 458.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002926/0.2734, allocations: 228.1 kB / 458.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009497/0.2744, allocations: 291.5 kB / 459 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/0.2763, allocations: 1.044 MB / 460 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.833e-05/0.2764, allocations: 119.2 kB / 460.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/0.2767, allocations: 160 kB / 460.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002775/0.2795, allocations: 1.601 MB / 461.9 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.507e-05/0.2795, allocations: 15.94 kB / 461.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.2796, allocations: 60 kB / 462 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.459e-05/0.2797, allocations: 40 kB / 462 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002086/0.2818, allocations: 1.049 MB / 463.1 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008475/0.2902, allocations: 5.645 MB / 468.7 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.2919, allocations: 0.5664 MB / 469.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009353/0.2928, allocations: 428.7 kB / 469.7 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.544e-05/0.2929, allocations: 8.656 kB / 469.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.2929, allocations: 43.2 kB / 469.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.986e-06/0.2929, allocations: 0 / 469.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005148/0.2981, allocations: 2.169 MB / 471.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.2982, allocations: 111.5 kB / 472 MB, free: 13.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/0.3, allocations: 1.337 MB / 473.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.348e-05/0.3001, allocations: 37.7 kB / 473.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007755/0.3008, allocations: 0.8594 MB / 474.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.3011, allocations: 277.6 kB / 474.5 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003126/0.3014, allocations: 210.8 kB / 474.7 MB, free: 10.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3016, allocations: 345.9 kB / 475.1 MB, free: 9.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006223/0.3022, allocations: 290.4 kB / 475.3 MB, free: 9.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.3032, allocations: 0.7926 MB / 476.1 MB, free: 8.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/0.3049, allocations: 1.081 MB / 477.2 MB, free: 7.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.3049, allocations: 4 kB / 477.2 MB, free: 7.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002502/0.3074, allocations: 1.268 MB / 478.5 MB, free: 6.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3075, allocations: 12 kB / 478.5 MB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.569e-05/0.3075, allocations: 15.98 kB / 478.5 MB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005141/0.308, allocations: 138.9 kB / 478.7 MB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008817/0.3089, allocations: 259.6 kB / 478.9 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004394/0.3133, allocations: 4.312 MB / 483.2 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.3143, allocations: 64.03 kB / 483.3 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.514e-05/0.3144, allocations: 56.16 kB / 483.3 MB, free: 0.8398 MB / 382.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.0006505/0.3151, allocations: 361.3 kB / 483.7 MB, free: 488 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.3153, allocations: 147.1 kB / 483.8 MB, free: 340 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/0.3172, allocations: 0.8217 MB / 484.7 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3172, allocations: 7.938 kB / 484.7 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3172, allocations: 4 kB / 484.7 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.3172, allocations: 3.984 kB / 484.7 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004047/0.3212, allocations: 2.121 MB / 486.8 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.3212, allocations: 4 kB / 486.8 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006085/0.3218, allocations: 127.8 kB / 486.9 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000455/0.3223, allocations: 143 kB / 487.1 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-05/0.3224, allocations: 23.98 kB / 487.1 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004472/0.3268, allocations: 4.453 MB / 491.5 MB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.3268, allocations: 4 kB / 491.5 MB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.3293, allocations: 1.301 MB / 492.8 MB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005394/0.3299, allocations: 218.9 kB / 493.1 MB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.33, allocations: 16 kB / 493.1 MB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/0.3307, allocations: 35.97 kB / 493.1 MB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.3308, allocations: 72.27 kB / 493.2 MB, free: 6.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.3309, allocations: 20 kB / 493.2 MB, free: 6.406 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.3323, allocations: 0.8781 MB / 494.1 MB, free: 5.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3323, allocations: 0 / 494.1 MB, free: 5.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001302/0.3336, allocations: 331.9 kB / 494.4 MB, free: 5.203 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.002909/0.3365, allocations: 1.893 MB / 496.3 MB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.3385, allocations: 1.085 MB / 497.4 MB, free: 2.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3385, allocations: 0 / 497.4 MB, free: 2.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.3396, allocations: 0.6863 MB / 498.1 MB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.3413, allocations: 377.7 kB / 498.4 MB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/0.3604, allocations: 11.71 MB / 0.4982 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000815/0.3613, allocations: 0.638 MB / 0.4988 GB, free: 3.941 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006488/0.3619, allocations: 171.6 kB / 0.499 GB, free: 3.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007926/0.3627, allocations: 0.6086 MB / 0.4996 GB, free: 3.16 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3627, allocations: 0 / 0.4996 GB, free: 3.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08442/0.4471, allocations: 34.07 MB / 0.5328 GB, free: 1.531 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/13.82, allocations: 11.94 kB / 0.5328 GB, free: 1.52 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.785867275000783]