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.001282/0.001282, allocations: 113 kB / 18.49 MB, free: 4.539 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.001313/0.001313, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.419/1.419, allocations: 230.6 MB / 254.8 MB, free: 15.08 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 51.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1081, allocations: 53.33 MB / 427 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2331/0.3412, allocations: 12.21 MB / 439.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005856/0.3471, allocations: 3.314 MB / 442.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.3485, allocations: 43.12 kB / 442.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.3502, allocations: 0.6868 MB / 443.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.3522, allocations: 0.7896 MB / 444.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000871/0.3531, allocations: 404.5 kB / 444.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002686/0.3558, allocations: 2.415 MB / 446.9 MB, free: 284 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.3569, allocations: 0.6497 MB / 447.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.3586, allocations: 0.9323 MB / 448.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.36, allocations: 0.9866 MB / 449.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002977/0.3603, allocations: 228.6 kB / 449.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005519/0.3608, allocations: 270 kB / 449.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004168/0.3613, allocations: 459.6 kB / 450.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.3624, allocations: 1.073 MB / 451.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003884/0.3663, allocations: 2.843 MB / 454.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3663, allocations: 0 / 454.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3663, allocations: 1.469 kB / 454.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.001e-05/0.3664, allocations: 0.6562 kB / 454.3 MB, free: 12.72 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.004549/0.3709, allocations: 2.219 MB / 456.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.371, allocations: 11.03 kB / 456.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.268e-05/0.371, allocations: 40.53 kB / 456.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002681/0.3713, allocations: 220 kB / 456.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009833/0.3723, allocations: 293.5 kB / 457.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002067/0.3744, allocations: 1.134 MB / 458.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.3745, allocations: 117.9 kB / 458.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002233/0.3747, allocations: 158.5 kB / 458.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/0.3774, allocations: 1.502 MB / 460 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-05/0.3775, allocations: 18.31 kB / 460 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.3776, allocations: 65.78 kB / 460.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.3776, allocations: 38.88 kB / 460.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002216/0.3798, allocations: 1.045 MB / 461.1 MB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009589/0.3894, allocations: 6.255 MB / 467.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.391, allocations: 0.5772 MB / 468 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000929/0.392, allocations: 423 kB / 468.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.392, allocations: 7.781 kB / 468.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.3921, allocations: 38.56 kB / 468.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.086e-06/0.3921, allocations: 0 / 468.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.0056/0.3977, allocations: 2.393 MB / 470.8 MB, free: 1.383 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.82e-05/0.3977, allocations: 118.4 kB / 470.9 MB, free: 1.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001941/0.3997, allocations: 1.302 MB / 472.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.603e-05/0.3997, allocations: 44.23 kB / 472.3 MB, free: 492 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007121/0.4005, allocations: 0.8727 MB / 473.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/0.4007, allocations: 266.1 kB / 473.4 MB, free: 15.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003136/0.401, allocations: 208.9 kB / 473.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.4012, allocations: 351.5 kB / 474 MB, free: 15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006069/0.4018, allocations: 280.2 kB / 474.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009907/0.4028, allocations: 0.7387 MB / 475 MB, free: 14.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.4045, allocations: 1.086 MB / 476.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.4045, allocations: 2.969 kB / 476.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002568/0.4071, allocations: 1.262 MB / 477.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.4071, allocations: 11.16 kB / 477.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/0.4071, allocations: 21.44 kB / 477.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005086/0.4076, allocations: 133.4 kB / 477.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008271/0.4084, allocations: 266.7 kB / 477.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004424/0.4129, allocations: 4.64 MB / 482.4 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.4142, allocations: 64.86 kB / 482.5 MB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.93e-05/0.4142, allocations: 53.38 kB / 482.5 MB, free: 7.652 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.0006976/0.4149, allocations: 349.4 kB / 482.9 MB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.4152, allocations: 142.5 kB / 483 MB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.4171, allocations: 0.8325 MB / 483.8 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.4171, allocations: 11.98 kB / 483.8 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4171, allocations: 1.078 kB / 483.8 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.4171, allocations: 0 / 483.8 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004283/0.4214, allocations: 2.323 MB / 486.2 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.4214, allocations: 12 kB / 486.2 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005897/0.422, allocations: 131.8 kB / 486.3 MB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004566/0.4224, allocations: 130.4 kB / 486.4 MB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.187e-05/0.4225, allocations: 23.98 kB / 486.5 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004595/0.4271, allocations: 4.791 MB / 491.2 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.4271, allocations: 4 kB / 491.2 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.4297, allocations: 1.305 MB / 492.6 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006262/0.4303, allocations: 284.1 kB / 492.8 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.4305, allocations: 23.94 kB / 492.9 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006283/0.4311, allocations: 35.97 kB / 492.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.4312, allocations: 72.36 kB / 493 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.283e-05/0.4313, allocations: 23.98 kB / 493 MB, free: 12.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00142/0.4327, allocations: 0.878 MB / 493.9 MB, free: 11.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4327, allocations: 0 / 493.9 MB, free: 11.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001457/0.4341, allocations: 331.9 kB / 494.2 MB, free: 11.62 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.003036/0.4372, allocations: 1.889 MB / 496.1 MB, free: 9.641 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.4395, allocations: 1.093 MB / 497.2 MB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.4395, allocations: 0 / 497.2 MB, free: 8.508 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.4407, allocations: 0.6836 MB / 497.8 MB, free: 7.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.4427, allocations: 373.1 kB / 498.2 MB, free: 7.445 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0197/0.4624, allocations: 11.71 MB / 0.498 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009302/0.4633, allocations: 1.214 MB / 0.4992 GB, free: 9.785 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006451/0.464, allocations: 171.6 kB / 0.4993 GB, free: 9.613 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007986/0.4648, allocations: 0.6125 MB / 0.4999 GB, free: 9 MB / 414.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4648, allocations: 0 / 0.4999 GB, free: 9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07573/0.5405, allocations: 31.49 MB / 0.5307 GB, free: 9.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/14.88, allocations: 8 kB / 0.5307 GB, free: 9.902 MB / 446.1 MB " [Timeout remaining time 645] (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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 20.985085318039637]