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.001616/0.001616, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001874/0.001874, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.52/1.52, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001779/0.001779, allocations: 47.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1088, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2314/0.3402, allocations: 12.21 MB / 438.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006148/0.3463, allocations: 3.321 MB / 441.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002277/0.3486, allocations: 38.91 kB / 441.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002171/0.3508, allocations: 0.6916 MB / 442.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002838/0.3536, allocations: 0.7829 MB / 443.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.3549, allocations: 405.5 kB / 443.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003479/0.3583, allocations: 2.418 MB / 446.2 MB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/0.3596, allocations: 0.6495 MB / 446.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.3618, allocations: 0.9333 MB / 447.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001855/0.3636, allocations: 0.9813 MB / 448.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003854/0.364, allocations: 230.2 kB / 449 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007256/0.3647, allocations: 266.3 kB / 449.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004304/0.3652, allocations: 458.5 kB / 449.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.3665, allocations: 1.081 MB / 450.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004469/0.371, allocations: 2.843 MB / 453.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.371, allocations: 1.828 kB / 453.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.371, allocations: 0 / 453.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.705e-05/0.3711, allocations: 0 / 453.6 MB, free: 12.76 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.005369/0.3765, allocations: 2.208 MB / 455.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3765, allocations: 10.94 kB / 455.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003357/0.3769, allocations: 225 kB / 456 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001079/0.3779, allocations: 291 kB / 456.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.3804, allocations: 1.136 MB / 457.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.3805, allocations: 116.4 kB / 457.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002623/0.3807, allocations: 162.8 kB / 457.7 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00303/0.3838, allocations: 1.498 MB / 459.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.073e-05/0.3838, allocations: 19.23 kB / 459.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.384, allocations: 61.75 kB / 459.3 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.095e-05/0.384, allocations: 42.19 kB / 459.4 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002332/0.3863, allocations: 1.041 MB / 460.4 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.3966, allocations: 6.261 MB / 466.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.3983, allocations: 0.5755 MB / 467.2 MB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.3993, allocations: 422.8 kB / 467.6 MB, free: 3.035 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.507e-05/0.3993, allocations: 19.42 kB / 467.7 MB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.3994, allocations: 38.56 kB / 467.7 MB, free: 2.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.454e-06/0.3994, allocations: 0 / 467.7 MB, free: 2.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006138/0.4055, allocations: 2.377 MB / 470.1 MB, free: 1.445 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.114e-05/0.4056, allocations: 115.2 kB / 470.2 MB, free: 1.316 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002309/0.4079, allocations: 1.314 MB / 471.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.683e-05/0.408, allocations: 36.55 kB / 471.5 MB, free: 0.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007712/0.4088, allocations: 0.8724 MB / 472.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002798/0.4091, allocations: 274.2 kB / 472.7 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000318/0.4094, allocations: 212.3 kB / 472.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.4096, allocations: 346.9 kB / 473.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006532/0.4102, allocations: 280 kB / 473.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.4113, allocations: 0.7405 MB / 474.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/0.413, allocations: 1.084 MB / 475.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.413, allocations: 4 kB / 475.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002831/0.4159, allocations: 1.259 MB / 476.6 MB, free: 12.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.4159, allocations: 11.16 kB / 476.6 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.943e-05/0.4159, allocations: 19.67 kB / 476.6 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005895/0.4165, allocations: 139.6 kB / 476.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008552/0.4174, allocations: 253.7 kB / 477 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004668/0.422, allocations: 4.641 MB / 481.6 MB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.4235, allocations: 64.89 kB / 481.7 MB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.822e-05/0.4236, allocations: 56.64 kB / 481.8 MB, free: 7.719 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.0007354/0.4244, allocations: 359.1 kB / 482.1 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002991/0.4247, allocations: 141.2 kB / 482.3 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001908/0.4266, allocations: 0.8296 MB / 483.1 MB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.4266, allocations: 8 kB / 483.1 MB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4266, allocations: 4 kB / 483.1 MB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.4266, allocations: 3.984 kB / 483.1 MB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004342/0.4309, allocations: 2.33 MB / 485.4 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.4309, allocations: 4.469 kB / 485.4 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.4315, allocations: 139.7 kB / 485.6 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004738/0.432, allocations: 130.5 kB / 485.7 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.876e-05/0.4321, allocations: 19.94 kB / 485.7 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004728/0.4368, allocations: 4.792 MB / 490.5 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.4368, allocations: 4 kB / 490.5 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002764/0.4396, allocations: 1.301 MB / 491.8 MB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007425/0.4403, allocations: 296 kB / 492.1 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001797/0.4405, allocations: 16 kB / 492.1 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006551/0.4411, allocations: 39.97 kB / 492.2 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.4413, allocations: 60.42 kB / 492.2 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.661e-05/0.4413, allocations: 27.94 kB / 492.2 MB, free: 12.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.4428, allocations: 0.8742 MB / 493.1 MB, free: 12.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4428, allocations: 0 / 493.1 MB, free: 12.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001369/0.4441, allocations: 335.9 kB / 493.4 MB, free: 11.72 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.002929/0.4471, allocations: 1.887 MB / 495.3 MB, free: 9.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002107/0.4492, allocations: 1.09 MB / 496.4 MB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.4492, allocations: 0 / 496.4 MB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.4503, allocations: 0.6953 MB / 497.1 MB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.4522, allocations: 364.3 kB / 497.5 MB, free: 7.551 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02106/0.4733, allocations: 11.7 MB / 0.4972 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009717/0.4742, allocations: 1.214 MB / 0.4984 GB, free: 9.898 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007236/0.475, allocations: 179.6 kB / 0.4986 GB, free: 9.719 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008152/0.4758, allocations: 0.6047 MB / 0.4992 GB, free: 9.113 MB / 414.1 MB Notification: Performance of SimCode: time 1.763e-06/0.4758, allocations: 4 kB / 0.4992 GB, free: 9.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08526/0.561, allocations: 31.44 MB / 0.5299 GB, free: 10.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/15.27, allocations: 11.98 kB / 0.5299 GB, free: 10.04 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.172938810894266]