Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.0008669/0.0008669, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008521/0.0008521, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8985/0.8985, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.816e-06/2.816e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.33e-05/2.612e-05, allocations: 3.266 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008619/0.008645, allocations: 7.162 MB / 331.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003826/0.01247, allocations: 2.494 MB / 334.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008037/0.01327, allocations: 27.88 kB / 334.2 MB, free: 6.125 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.01445, allocations: 0.5246 MB / 334.7 MB, free: 5.598 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008633/0.01531, allocations: 0.5116 MB / 335.3 MB, free: 5.082 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.01574, allocations: 251.7 kB / 335.5 MB, free: 4.836 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001414/0.01715, allocations: 1.544 MB / 337 MB, free: 3.285 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004934/0.01764, allocations: 371.2 kB / 337.4 MB, free: 2.902 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009426/0.01859, allocations: 0.8535 MB / 338.3 MB, free: 2.047 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003912/0.01898, allocations: 446.6 kB / 338.7 MB, free: 1.609 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.01908, allocations: 140 kB / 338.8 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.01931, allocations: 179.9 kB / 339 MB, free: 1.297 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.01945, allocations: 278.9 kB / 339.3 MB, free: 1.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.01976, allocations: 470.9 kB / 339.7 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.02087, allocations: 1.725 MB / 341.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.02088, allocations: 0 / 341.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.02088, allocations: 0 / 341.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.02089, allocations: 0 / 341.5 MB, free: 14.83 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001484/0.02238, allocations: 1.396 MB / 342.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.02241, allocations: 15.98 kB / 342.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001211/0.02253, allocations: 152.4 kB / 343 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003554/0.02289, allocations: 188 kB / 343.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008286/0.02372, allocations: 0.6765 MB / 343.9 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.02376, allocations: 73.94 kB / 344 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.364e-05/0.02385, allocations: 104 kB / 344.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.02488, allocations: 1.039 MB / 345.1 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.02491, allocations: 0 / 345.1 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.263e-05/0.02496, allocations: 44 kB / 345.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.02498, allocations: 28 kB / 345.2 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007947/0.02577, allocations: 0.6286 MB / 345.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003083/0.02885, allocations: 3.506 MB / 349.3 MB, free: 6.656 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.0293, allocations: 339.6 kB / 349.6 MB, free: 6.316 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/0.02964, allocations: 245.4 kB / 349.9 MB, free: 6.074 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.02966, allocations: 4.328 kB / 349.9 MB, free: 6.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.02968, allocations: 38.89 kB / 349.9 MB, free: 6.023 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 1.523e-06/0.02968, allocations: 0 / 349.9 MB, free: 6.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001629/0.03131, allocations: 1.26 MB / 351.2 MB, free: 4.727 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.03135, allocations: 81.11 kB / 351.3 MB, free: 4.629 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007212/0.03207, allocations: 0.8447 MB / 352.1 MB, free: 3.773 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.0321, allocations: 37.7 kB / 352.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.03236, allocations: 0.5657 MB / 352.7 MB, free: 3.156 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.215e-05/0.03244, allocations: 170.6 kB / 352.9 MB, free: 2.988 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.03255, allocations: 126.6 kB / 353 MB, free: 2.859 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.03264, allocations: 334 kB / 353.3 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.03285, allocations: 165.9 kB / 353.5 MB, free: 2.363 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.03318, allocations: 485.7 kB / 354 MB, free: 1.746 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000575/0.03376, allocations: 0.6661 MB / 354.6 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.03377, allocations: 4 kB / 354.6 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0007997/0.03457, allocations: 0.771 MB / 355.4 MB, free: 164 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.03458, allocations: 15.06 kB / 355.4 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.0346, allocations: 12 kB / 355.4 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.03477, allocations: 77.94 kB / 355.5 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.03504, allocations: 155.7 kB / 355.7 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.03654, allocations: 2.916 MB / 358.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.0368, allocations: 35.94 kB / 358.6 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.03683, allocations: 36 kB / 358.6 MB, free: 12.68 MB / 330.7 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 (84): * Single equations (assignments): 82 * 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.0002342/0.03706, allocations: 261.6 kB / 358.9 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.309e-05/0.03713, allocations: 91.38 kB / 359 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005661/0.0377, allocations: 499.4 kB / 359.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.0377, allocations: 4 kB / 359.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.03771, allocations: 4 kB / 359.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.03771, allocations: 4 kB / 359.5 MB, free: 11.81 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.03895, allocations: 1.298 MB / 360.8 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.03896, allocations: 352 / 360.8 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.03912, allocations: 83.89 kB / 360.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.03924, allocations: 69.56 kB / 360.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.03926, allocations: 19.98 kB / 360.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.04064, allocations: 2.9 MB / 363.8 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.04064, allocations: 7.984 kB / 363.9 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007148/0.04136, allocations: 0.7637 MB / 364.6 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.04152, allocations: 131.4 kB / 364.7 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.04157, allocations: 8.125 kB / 364.8 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.04177, allocations: 35.92 kB / 364.8 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.04183, allocations: 31.94 kB / 364.8 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.04184, allocations: 16 kB / 364.8 MB, free: 6.098 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004695/0.04231, allocations: 0.5615 MB / 365.4 MB, free: 5.543 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04231, allocations: 0 / 365.4 MB, free: 5.543 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004764/0.04279, allocations: 207.9 kB / 365.6 MB, free: 5.34 MB / 330.7 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 (38): * Single equations (assignments): 36 * 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.0009752/0.04376, allocations: 1.334 MB / 366.9 MB, free: 3.953 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006921/0.04445, allocations: 0.6593 MB / 367.6 MB, free: 3.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.04446, allocations: 4.062 kB / 367.6 MB, free: 3.266 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004009/0.04486, allocations: 432.8 kB / 368 MB, free: 2.816 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006166/0.04547, allocations: 241.2 kB / 368.3 MB, free: 2.586 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007347/0.05282, allocations: 7.254 MB / 375.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.05309, allocations: 418 kB / 375.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000242/0.05333, allocations: 103.2 kB / 376 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.05363, allocations: 376.4 kB / 376.4 MB, free: 9.973 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.05363, allocations: 0 / 376.4 MB, free: 9.973 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03735/0.09098, allocations: 20.96 MB / 397.3 MB, free: 5.289 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.655/7.746, allocations: 15.94 kB / 397.4 MB, free: 5.273 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_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_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcse.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi [Calling sys.exit(0), Time elapsed: 9.91842685546726]