Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001355/0.001355, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.4 MB / 254 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 75.88 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1151, allocations: 53.37 MB / 426.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.2527/0.3677, allocations: 8.267 MB / 434.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005359/0.3731, allocations: 2.755 MB / 437.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001748/0.3749, allocations: 32.62 kB / 437.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002353/0.3772, allocations: 0.5807 MB / 438 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002466/0.3797, allocations: 0.5013 MB / 438.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009353/0.3806, allocations: 272.1 kB / 438.8 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002592/0.3832, allocations: 1.506 MB / 440.3 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008803/0.3841, allocations: 402.9 kB / 440.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.3856, allocations: 0.5889 MB / 441.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.3866, allocations: 0.6133 MB / 441.9 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002291/0.3868, allocations: 139.9 kB / 442 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005367/0.3874, allocations: 187.5 kB / 442.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.3876, allocations: 289.1 kB / 442.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006878/0.3883, allocations: 0.6736 MB / 443.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.391, allocations: 1.762 MB / 444.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.391, allocations: 0.5625 kB / 444.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.391, allocations: 0 / 444.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.291e-05/0.391, allocations: 0 / 444.9 MB, free: 2.074 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.003475/0.3945, allocations: 1.522 MB / 446.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.3946, allocations: 9.906 kB / 446.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001845/0.3947, allocations: 155.4 kB / 446.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009337/0.3957, allocations: 206 kB / 446.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.3972, allocations: 0.7703 MB / 447.6 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.86e-05/0.3973, allocations: 73.66 kB / 447.6 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.3974, allocations: 100 kB / 447.7 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.3993, allocations: 0.9403 MB / 448.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.033e-05/0.3994, allocations: 8.422 kB / 448.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.632e-05/0.3995, allocations: 41.64 kB / 448.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.3995, allocations: 26.62 kB / 448.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.401, allocations: 0.6459 MB / 449.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007072/0.4081, allocations: 3.921 MB / 453.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008417/0.4089, allocations: 429.5 kB / 453.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006853/0.4096, allocations: 264.2 kB / 454 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.4096, allocations: 8.688 kB / 454 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.4097, allocations: 37.28 kB / 454 MB, free: 12.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.525e-06/0.4097, allocations: 5.062 kB / 454 MB, free: 12.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003759/0.4134, allocations: 1.567 MB / 455.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.209e-05/0.4135, allocations: 83.2 kB / 455.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.415, allocations: 0.8392 MB / 456.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.116e-05/0.415, allocations: 36.17 kB / 456.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005518/0.4156, allocations: 0.5787 MB / 457.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.4158, allocations: 170 kB / 457.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/0.416, allocations: 132.1 kB / 457.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4162, allocations: 336.9 kB / 457.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/0.4166, allocations: 174.8 kB / 457.9 MB, free: 9.938 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007052/0.4173, allocations: 468.3 kB / 458.4 MB, free: 9.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.4184, allocations: 0.6801 MB / 459.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.4184, allocations: 2.875 kB / 459.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001773/0.4202, allocations: 0.791 MB / 459.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.4202, allocations: 10.41 kB / 459.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.4203, allocations: 9.594 kB / 459.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.4206, allocations: 88.39 kB / 460 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005704/0.4211, allocations: 159 kB / 460.1 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002916/0.4241, allocations: 3.139 MB / 463.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009892/0.425, allocations: 42.47 kB / 463.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-05/0.4251, allocations: 31.62 kB / 463.3 MB, free: 5.223 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.0006044/0.4257, allocations: 266.1 kB / 463.6 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002385/0.426, allocations: 90.28 kB / 463.7 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.4272, allocations: 0.5009 MB / 464.2 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.4272, allocations: 5.469 kB / 464.2 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4272, allocations: 3.625 kB / 464.2 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.4272, allocations: 7.922 kB / 464.2 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.4303, allocations: 1.468 MB / 465.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.4303, allocations: 2.219 kB / 465.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/0.4307, allocations: 75.92 kB / 465.7 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002536/0.4309, allocations: 72.69 kB / 465.8 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/0.431, allocations: 19.67 kB / 465.8 MB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002911/0.4339, allocations: 3.126 MB / 469 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4339, allocations: 1.094 kB / 469 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.4357, allocations: 0.8063 MB / 469.8 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005841/0.4363, allocations: 210.4 kB / 470 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.4365, allocations: 13.03 kB / 470 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005198/0.437, allocations: 31.17 kB / 470 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.4371, allocations: 36.95 kB / 470.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.4371, allocations: 14.19 kB / 470.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001033/0.4382, allocations: 0.5788 MB / 470.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4382, allocations: 0 / 470.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001295/0.4395, allocations: 207.4 kB / 470.9 MB, free: 15.18 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.002357/0.4418, allocations: 1.373 MB / 472.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.4435, allocations: 0.6845 MB / 472.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.4435, allocations: 0 / 472.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008577/0.4444, allocations: 455.1 kB / 473.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.446, allocations: 225 kB / 473.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/0.4615, allocations: 7.484 MB / 481.1 MB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008008/0.4623, allocations: 1.009 MB / 482.1 MB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006008/0.4629, allocations: 112.7 kB / 482.2 MB, free: 6.918 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006176/0.4635, allocations: 395.3 kB / 482.6 MB, free: 6.535 MB / 382.1 MB Notification: Performance of SimCode: time 2.014e-06/0.4635, allocations: 0 / 482.6 MB, free: 6.535 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06547/0.529, allocations: 19.62 MB / 0.4904 GB, free: 3.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.11, allocations: 8 kB / 0.4904 GB, free: 3.188 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.288128438056447]