Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001777/0.001777, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002341/0.002341, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 55.06 kB / 347.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3186, allocations: 49.17 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009178/0.3278, allocations: 8.248 MB / 404.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005869/0.3336, allocations: 2.748 MB / 407.4 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001683/0.3353, allocations: 27.5 kB / 407.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.3372, allocations: 0.5804 MB / 408 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001691/0.3389, allocations: 0.5087 MB / 408.5 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006611/0.3396, allocations: 267 kB / 408.7 MB, free: 228 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002293/0.3418, allocations: 1.505 MB / 410.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007333/0.3426, allocations: 398.6 kB / 410.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.3437, allocations: 0.5803 MB / 411.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008958/0.3446, allocations: 0.6196 MB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.3448, allocations: 139.2 kB / 412 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004268/0.3452, allocations: 185 kB / 412.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002774/0.3455, allocations: 284.1 kB / 412.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007407/0.3462, allocations: 0.6781 MB / 413.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002389/0.3486, allocations: 1.755 MB / 414.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3486, allocations: 0 / 414.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3486, allocations: 0 / 414.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.23e-05/0.3486, allocations: 1.562 kB / 414.9 MB, free: 12.72 MB / 334.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.002951/0.3516, allocations: 1.44 MB / 416.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.3516, allocations: 14.42 kB / 416.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001871/0.3518, allocations: 151.6 kB / 416.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007072/0.3525, allocations: 196.2 kB / 416.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.3539, allocations: 0.6893 MB / 417.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.639e-05/0.354, allocations: 74.16 kB / 417.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.3542, allocations: 103.7 kB / 417.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.3558, allocations: 0.9478 MB / 418.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.493e-05/0.3559, allocations: 6.031 kB / 418.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.242e-05/0.3559, allocations: 41.03 kB / 418.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.356, allocations: 24.38 kB / 418.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.3573, allocations: 0.6542 MB / 419.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005721/0.363, allocations: 3.8 MB / 423 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000682/0.3637, allocations: 346.9 kB / 423.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005985/0.3643, allocations: 261.4 kB / 423.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.3643, allocations: 4.156 kB / 423.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.3644, allocations: 45.14 kB / 423.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.424e-06/0.3644, allocations: 0 / 423.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003265/0.3677, allocations: 1.343 MB / 425 MB, free: 5.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.3677, allocations: 85.48 kB / 425.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.369, allocations: 0.8389 MB / 425.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.369, allocations: 33.02 kB / 425.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005214/0.3695, allocations: 0.5736 MB / 426.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.3697, allocations: 174.7 kB / 426.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.3699, allocations: 133.7 kB / 426.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.37, allocations: 332 kB / 427.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000362/0.3704, allocations: 175.9 kB / 427.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006599/0.371, allocations: 471 kB / 427.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.3722, allocations: 0.6847 MB / 428.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.3722, allocations: 4 kB / 428.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001466/0.3736, allocations: 0.783 MB / 429.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.3737, allocations: 8 kB / 429.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.3737, allocations: 16.28 kB / 429.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002932/0.374, allocations: 93.61 kB / 429.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.3745, allocations: 155.7 kB / 429.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/0.3773, allocations: 2.935 MB / 432.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006464/0.378, allocations: 35.98 kB / 432.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.623e-05/0.378, allocations: 32 kB / 432.5 MB, free: 14.18 MB / 350.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.0004421/0.3785, allocations: 269.5 kB / 432.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.3787, allocations: 95.39 kB / 432.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.3797, allocations: 0.4995 MB / 433.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3797, allocations: 4 kB / 433.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3797, allocations: 4 kB / 433.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3797, allocations: 4 kB / 433.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002575/0.3823, allocations: 1.438 MB / 434.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.3823, allocations: 4 kB / 434.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.3827, allocations: 71.91 kB / 434.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002125/0.3829, allocations: 69.89 kB / 434.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/0.3829, allocations: 16 kB / 435 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.3857, allocations: 2.927 MB / 437.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3857, allocations: 0 / 437.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.3872, allocations: 0.8102 MB / 438.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.3876, allocations: 127.4 kB / 438.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.3877, allocations: 15.94 kB / 438.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004743/0.3882, allocations: 31.97 kB / 438.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.521e-05/0.3883, allocations: 39.88 kB / 438.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.3883, allocations: 12 kB / 438.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008628/0.3892, allocations: 0.5732 MB / 439.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3892, allocations: 0 / 439.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009538/0.3901, allocations: 207.9 kB / 439.7 MB, free: 6.598 MB / 350.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.001921/0.3921, allocations: 1.373 MB / 441.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.3934, allocations: 0.6823 MB / 441.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3934, allocations: 0 / 441.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000725/0.3941, allocations: 442 kB / 442.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.3953, allocations: 231.2 kB / 442.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.4068, allocations: 7.475 MB / 449.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007293/0.4076, allocations: 1.013 MB / 450.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004002/0.408, allocations: 107.3 kB / 451 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005011/0.4085, allocations: 387.3 kB / 451.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4085, allocations: 0 / 451.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0695/0.478, allocations: 20.08 MB / 471.5 MB, free: 6.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/13.86, allocations: 3.938 kB / 471.5 MB, free: 6.168 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 17.62147257407196]