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.001819/0.001819, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.00222/0.00222, allocations: 216.1 kB / 24.47 MB, free: 3.777 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.374/1.374, allocations: 207.7 MB / 235.3 MB, free: 9.797 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.001813/0.001813, allocations: 52.3 kB / 347.2 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3162, allocations: 49.16 MB / 396.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007843/0.324, allocations: 7.215 MB / 403.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004352/0.3283, allocations: 2.554 MB / 406.1 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005524/0.3289, allocations: 28.66 kB / 406.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.3302, allocations: 0.5202 MB / 406.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.3313, allocations: 0.5054 MB / 407.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005957/0.3319, allocations: 260.9 kB / 407.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.3336, allocations: 1.504 MB / 408.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000607/0.3342, allocations: 375.9 kB / 409.3 MB, free: 480 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007262/0.3349, allocations: 0.5815 MB / 409.9 MB, free: 176 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007548/0.3356, allocations: 0.5299 MB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002044/0.3359, allocations: 140.3 kB / 410.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004347/0.3363, allocations: 181.2 kB / 410.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002854/0.3366, allocations: 279.1 kB / 411 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006425/0.3372, allocations: 0.5532 MB / 411.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002231/0.3394, allocations: 1.773 MB / 413.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3395, allocations: 0 / 413.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3395, allocations: 4 kB / 413.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.935e-05/0.3395, allocations: 0 / 413.3 MB, free: 14.22 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.002834/0.3423, allocations: 1.43 MB / 414.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3424, allocations: 14.42 kB / 414.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001788/0.3425, allocations: 155.7 kB / 414.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006431/0.3432, allocations: 207.8 kB / 415.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.3445, allocations: 0.6857 MB / 415.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.984e-05/0.3446, allocations: 74.34 kB / 415.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.3448, allocations: 99.83 kB / 416 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.3465, allocations: 1.05 MB / 417 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/0.3465, allocations: 2.156 kB / 417 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.614e-05/0.3466, allocations: 41.03 kB / 417.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.922e-05/0.3466, allocations: 27.56 kB / 417.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.348, allocations: 0.6456 MB / 417.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005834/0.3538, allocations: 3.521 MB / 421.3 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008007/0.3546, allocations: 342.7 kB / 421.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005868/0.3552, allocations: 260.8 kB / 421.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.3552, allocations: 8.125 kB / 421.9 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.717e-05/0.3553, allocations: 37.31 kB / 421.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.735e-06/0.3553, allocations: 0 / 421.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003221/0.3585, allocations: 1.343 MB / 423.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.3586, allocations: 82.33 kB / 423.3 MB, free: 7.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.3598, allocations: 0.8587 MB / 424.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.3598, allocations: 34.98 kB / 424.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004819/0.3603, allocations: 0.5822 MB / 424.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.3605, allocations: 166.2 kB / 425 MB, free: 5.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.3607, allocations: 134.4 kB / 425.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3609, allocations: 332.8 kB / 425.4 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.3612, allocations: 175.2 kB / 425.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00062/0.3619, allocations: 499.4 kB / 426.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.3629, allocations: 0.6835 MB / 426.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3629, allocations: 4 kB / 426.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001624/0.3645, allocations: 0.7868 MB / 427.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3645, allocations: 8 kB / 427.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.3645, allocations: 16.39 kB / 427.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.3648, allocations: 81.62 kB / 427.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.3653, allocations: 159.7 kB / 427.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002998/0.3683, allocations: 2.923 MB / 430.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/0.369, allocations: 35.92 kB / 430.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.3691, allocations: 36 kB / 430.8 MB, free: 15.65 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.0004672/0.3695, allocations: 261.7 kB / 431.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.3697, allocations: 99.38 kB / 431.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.3707, allocations: 0.4994 MB / 431.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.3707, allocations: 8 kB / 431.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3707, allocations: 0 / 431.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3707, allocations: 3.984 kB / 431.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.3732, allocations: 1.341 MB / 433 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.3732, allocations: 4 kB / 433 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.3736, allocations: 75.84 kB / 433.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002108/0.3738, allocations: 69.89 kB / 433.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.3738, allocations: 16 kB / 433.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/0.3766, allocations: 2.912 MB / 436.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3766, allocations: 128 / 436.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.3781, allocations: 0.8063 MB / 436.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000364/0.3784, allocations: 131.4 kB / 437 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.824e-05/0.3785, allocations: 11.94 kB / 437 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/0.379, allocations: 31.97 kB / 437.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.004e-05/0.379, allocations: 31.94 kB / 437.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.942e-05/0.3791, allocations: 16 kB / 437.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001182/0.3803, allocations: 0.5693 MB / 437.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3803, allocations: 0 / 437.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009281/0.3812, allocations: 219.9 kB / 437.9 MB, free: 8.184 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.001872/0.3831, allocations: 1.373 MB / 439.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.3845, allocations: 0.6825 MB / 440 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3845, allocations: 0 / 440 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007/0.3852, allocations: 449.5 kB / 440.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.3862, allocations: 227.2 kB / 440.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/0.3984, allocations: 7.463 MB / 448.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005886/0.399, allocations: 434.5 kB / 448.5 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000567/0.3995, allocations: 111.3 kB / 448.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005625/0.4001, allocations: 387.3 kB / 449 MB, free: 12.51 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4001, allocations: 4 kB / 449 MB, free: 12.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08934/0.4894, allocations: 21.25 MB / 470.2 MB, free: 7.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.42, allocations: 11.86 kB / 470.2 MB, free: 7.156 MB / 382.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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] "Error: Could not read variable loadInertia.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.422846712172031]