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.00136/0.00136, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001387/0.001387, allocations: 214.7 kB / 24.51 MB, free: 3.918 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.43/1.43, allocations: 230.6 MB / 258.3 MB, free: 7.738 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 43.92 kB / 378.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2678, allocations: 53.36 MB / 431.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00972/0.2775, allocations: 7.283 MB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004823/0.2823, allocations: 2.552 MB / 441.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009678/0.2833, allocations: 27.88 kB / 441.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.2848, allocations: 0.5192 MB / 442.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00132/0.2861, allocations: 0.5079 MB / 442.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/0.2866, allocations: 283.6 kB / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.2885, allocations: 1.502 MB / 444.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00064/0.2891, allocations: 403.3 kB / 444.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008761/0.29, allocations: 0.5875 MB / 445.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007931/0.2908, allocations: 0.6105 MB / 446.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001767/0.2909, allocations: 144 kB / 446.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003493/0.2913, allocations: 184 kB / 446.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002816/0.2916, allocations: 286.9 kB / 446.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006087/0.2922, allocations: 0.5483 MB / 447.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001997/0.2942, allocations: 1.782 MB / 449.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2942, allocations: 0 / 449.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2942, allocations: 0 / 449.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.205e-05/0.2942, allocations: 0 / 449.1 MB, free: 5.352 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.002559/0.2968, allocations: 1.438 MB / 450.5 MB, free: 3.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.2968, allocations: 8.031 kB / 450.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.654e-05/0.2968, allocations: 30.19 kB / 450.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001702/0.297, allocations: 152.4 kB / 450.7 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008179/0.2978, allocations: 208 kB / 450.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001306/0.2991, allocations: 0.7005 MB / 451.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.241e-05/0.2992, allocations: 74 kB / 451.7 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.2993, allocations: 99.95 kB / 451.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.3011, allocations: 1.051 MB / 452.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/0.3012, allocations: 0 / 452.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.144e-05/0.3013, allocations: 43.94 kB / 452.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.3013, allocations: 24 kB / 452.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.3026, allocations: 0.6558 MB / 453.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.3078, allocations: 3.509 MB / 457 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007114/0.3085, allocations: 353.9 kB / 457.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006632/0.3092, allocations: 268.6 kB / 457.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/0.3092, allocations: 4 kB / 457.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3092, allocations: 38.56 kB / 457.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.104e-06/0.3092, allocations: 0 / 457.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.00299/0.3122, allocations: 1.342 MB / 459 MB, free: 10.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.3123, allocations: 81.11 kB / 459.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.3135, allocations: 0.845 MB / 460 MB, free: 10.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.756e-05/0.3135, allocations: 37.7 kB / 460 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/0.314, allocations: 0.5775 MB / 460.6 MB, free: 9.406 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.3141, allocations: 170.6 kB / 460.7 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.3143, allocations: 134.5 kB / 460.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3144, allocations: 330 kB / 461.2 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003602/0.3148, allocations: 181.9 kB / 461.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006867/0.3155, allocations: 493.3 kB / 461.8 MB, free: 7.973 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.3165, allocations: 0.6799 MB / 462.5 MB, free: 7.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3165, allocations: 4 kB / 462.5 MB, free: 7.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00153/0.318, allocations: 0.7951 MB / 463.3 MB, free: 6.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3181, allocations: 8 kB / 463.3 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.3181, allocations: 12 kB / 463.3 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002643/0.3183, allocations: 81.62 kB / 463.4 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005016/0.3188, allocations: 155.7 kB / 463.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/0.3216, allocations: 2.931 MB / 466.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006205/0.3222, allocations: 40.16 kB / 466.5 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/0.3223, allocations: 32 kB / 466.6 MB, free: 2.859 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.0004227/0.3227, allocations: 265.5 kB / 466.8 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.3228, allocations: 91.44 kB / 466.9 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.3239, allocations: 0.4993 MB / 467.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3239, allocations: 4 kB / 467.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3239, allocations: 0 / 467.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3239, allocations: 3.984 kB / 467.4 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/0.3262, allocations: 1.345 MB / 468.8 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.3262, allocations: 4 kB / 468.8 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.3265, allocations: 75.89 kB / 468.9 MB, free: 492 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.3267, allocations: 65.91 kB / 468.9 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.3268, allocations: 19.98 kB / 468.9 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002587/0.3293, allocations: 2.908 MB / 471.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.3293, allocations: 4.031 kB / 471.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.3309, allocations: 0.8096 MB / 472.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003258/0.3312, allocations: 127.4 kB / 472.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.3313, allocations: 11.94 kB / 472.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.3317, allocations: 31.97 kB / 472.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-05/0.3318, allocations: 35.94 kB / 472.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.3319, allocations: 16 kB / 472.9 MB, free: 12.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009261/0.3328, allocations: 0.5771 MB / 473.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3328, allocations: 3.938 kB / 473.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008346/0.3336, allocations: 208 kB / 473.7 MB, free: 11.39 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.001886/0.3355, allocations: 1.378 MB / 475 MB, free: 9.957 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.3367, allocations: 0.6785 MB / 475.7 MB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3367, allocations: 8.188 kB / 475.7 MB, free: 9.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000763/0.3375, allocations: 444.8 kB / 476.2 MB, free: 8.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.3385, allocations: 233.1 kB / 476.4 MB, free: 8.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.3499, allocations: 7.469 MB / 483.9 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.3504, allocations: 426.4 kB / 484.3 MB, free: 220 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004357/0.3508, allocations: 111.3 kB / 484.4 MB, free: 104 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005439/0.3514, allocations: 387.4 kB / 484.8 MB, free: 15.72 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3514, allocations: 0 / 484.8 MB, free: 15.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05814/0.4095, allocations: 21.05 MB / 0.494 GB, free: 11.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/13.89, allocations: 14.78 kB / 0.494 GB, free: 11.05 MB / 414.1 MB " [Timeout remaining time 646] (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: 18.91517089190893]