Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001696/0.001696, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.001906/0.001906, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.553/1.553, 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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1094, allocations: 53.32 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.2314/0.3408, allocations: 8.269 MB / 434.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004736/0.3455, allocations: 2.759 MB / 437.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009957/0.3465, allocations: 27.88 kB / 437.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001594/0.3481, allocations: 0.5789 MB / 438 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001443/0.3496, allocations: 0.4991 MB / 438.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006833/0.3502, allocations: 275.9 kB / 438.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001636/0.3519, allocations: 1.502 MB / 440.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006251/0.3525, allocations: 407 kB / 440.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008752/0.3534, allocations: 0.5842 MB / 441.2 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006678/0.3541, allocations: 0.6187 MB / 441.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000182/0.3542, allocations: 139.9 kB / 442 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003896/0.3546, allocations: 184.1 kB / 442.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002344/0.3549, allocations: 291.5 kB / 442.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005224/0.3554, allocations: 0.6715 MB / 443.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002328/0.3577, allocations: 1.765 MB / 444.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.3577, allocations: 1.734 kB / 444.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3577, allocations: 0 / 444.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.145e-05/0.3577, allocations: 5.125 kB / 444.9 MB, free: 2.25 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002668/0.3604, allocations: 1.52 MB / 446.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.3605, allocations: 10.14 kB / 446.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/0.3606, allocations: 148.5 kB / 446.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007279/0.3614, allocations: 219.1 kB / 446.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.3626, allocations: 0.7553 MB / 447.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.3627, allocations: 77.03 kB / 447.6 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.3628, allocations: 101.2 kB / 447.7 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.3644, allocations: 0.9457 MB / 448.6 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.3644, allocations: 4.562 kB / 448.6 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.661e-05/0.3645, allocations: 45.38 kB / 448.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/0.3645, allocations: 25.45 kB / 448.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.3659, allocations: 0.6476 MB / 449.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006085/0.372, allocations: 3.923 MB / 453.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007907/0.3728, allocations: 422.1 kB / 453.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000597/0.3734, allocations: 259.2 kB / 453.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.751e-05/0.3734, allocations: 3.875 kB / 453.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.3735, allocations: 42.92 kB / 454 MB, free: 12.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.595e-06/0.3735, allocations: 4 kB / 454 MB, free: 12.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003357/0.3768, allocations: 1.562 MB / 455.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.3769, allocations: 81.23 kB / 455.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.3781, allocations: 0.8441 MB / 456.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.3781, allocations: 35.86 kB / 456.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004772/0.3786, allocations: 0.5827 MB / 457.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.3787, allocations: 174.8 kB / 457.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.3789, allocations: 132.4 kB / 457.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3791, allocations: 333.1 kB / 457.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.3795, allocations: 177.7 kB / 457.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00062/0.3801, allocations: 469.1 kB / 458.4 MB, free: 9.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3811, allocations: 0.6757 MB / 459 MB, free: 9.105 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3811, allocations: 2.719 kB / 459 MB, free: 9.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001578/0.3827, allocations: 0.7902 MB / 459.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.3827, allocations: 8.531 kB / 459.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.3827, allocations: 9.438 kB / 459.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003012/0.383, allocations: 94.58 kB / 459.9 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000526/0.3835, allocations: 161.3 kB / 460.1 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.3864, allocations: 3.136 MB / 463.2 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008721/0.3873, allocations: 42.59 kB / 463.3 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.161e-05/0.3873, allocations: 31.75 kB / 463.3 MB, free: 5.418 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005154/0.3878, allocations: 269.2 kB / 463.6 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.388, allocations: 91.69 kB / 463.7 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.3891, allocations: 0.4971 MB / 464.1 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3891, allocations: 4.312 kB / 464.2 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3891, allocations: 1.906 kB / 464.2 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.3891, allocations: 6.141 kB / 464.2 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.3916, allocations: 1.465 MB / 465.6 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3916, allocations: 2.969 kB / 465.6 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.3919, allocations: 79.89 kB / 465.7 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002145/0.3921, allocations: 66.75 kB / 465.8 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.3922, allocations: 16.33 kB / 465.8 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002632/0.3948, allocations: 3.13 MB / 468.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3948, allocations: 2.188 kB / 468.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.3963, allocations: 0.8098 MB / 469.7 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/0.3967, allocations: 206.9 kB / 469.9 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.903e-05/0.3968, allocations: 15.64 kB / 469.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004529/0.3973, allocations: 28.23 kB / 470 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.3974, allocations: 41.47 kB / 470 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.3974, allocations: 22.69 kB / 470 MB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008614/0.3983, allocations: 0.5741 MB / 470.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3983, allocations: 0 / 470.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009769/0.3993, allocations: 212.8 kB / 470.8 MB, free: 15.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001875/0.4011, allocations: 1.365 MB / 472.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.4026, allocations: 0.6886 MB / 472.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4026, allocations: 0 / 472.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007185/0.4033, allocations: 446.3 kB / 473.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.4045, allocations: 236 kB / 473.5 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/0.4165, allocations: 7.487 MB / 481 MB, free: 8.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007389/0.4172, allocations: 1.005 MB / 482 MB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005052/0.4177, allocations: 116.4 kB / 482.1 MB, free: 7.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004947/0.4182, allocations: 391.3 kB / 482.5 MB, free: 6.762 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4182, allocations: 0 / 482.5 MB, free: 6.762 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0645/0.4827, allocations: 19.62 MB / 0.4904 GB, free: 3.441 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.32, allocations: 4.062 kB / 0.4904 GB, free: 3.438 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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: 16.276845274027437]