Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001683/0.001683, allocations: 120.2 kB / 18.49 MB, free: 4.559 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.001665/0.001665, allocations: 214.2 kB / 21.46 MB, free: 1.605 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.511/1.511, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 56.09 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1351, allocations: 53.39 MB / 427.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.258/0.3931, allocations: 11.8 MB / 438.9 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005781/0.3989, allocations: 3.269 MB / 442.1 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/0.4005, allocations: 40.03 kB / 442.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.4022, allocations: 0.6672 MB / 442.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002124/0.4043, allocations: 0.728 MB / 443.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.4053, allocations: 398.8 kB / 444 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002836/0.4081, allocations: 2.242 MB / 446.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009545/0.4091, allocations: 0.6473 MB / 446.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001765/0.4109, allocations: 0.88 MB / 447.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.4122, allocations: 0.9143 MB / 448.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000258/0.4124, allocations: 217.1 kB / 448.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005076/0.4129, allocations: 256.8 kB / 449.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000395/0.4133, allocations: 427.7 kB / 449.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.4145, allocations: 1.017 MB / 450.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00361/0.4181, allocations: 2.691 MB / 453.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.4181, allocations: 0 / 453.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4181, allocations: 0 / 453.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.397e-05/0.4181, allocations: 4 kB / 453.2 MB, free: 13.22 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004624/0.4227, allocations: 2.112 MB / 455.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.4228, allocations: 9.906 kB / 455.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.727e-05/0.4228, allocations: 45.36 kB / 455.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002585/0.4231, allocations: 223.1 kB / 455.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008899/0.424, allocations: 261.6 kB / 455.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.426, allocations: 1.049 MB / 456.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.4261, allocations: 117.8 kB / 457 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002297/0.4263, allocations: 159.7 kB / 457.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002664/0.429, allocations: 1.488 MB / 458.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.367e-05/0.429, allocations: 12.77 kB / 458.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001431/0.4292, allocations: 66.95 kB / 458.8 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.924e-05/0.4292, allocations: 38.75 kB / 458.8 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.4313, allocations: 0.9683 MB / 459.8 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009695/0.441, allocations: 6.558 MB / 466.3 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008555/0.4418, allocations: 376.4 kB / 466.7 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004291/0.4422, allocations: 212.1 kB / 466.9 MB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.4423, allocations: 4.969 kB / 466.9 MB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000552/0.4428, allocations: 268.5 kB / 467.2 MB, free: 3.387 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.084e-06/0.4428, allocations: 1.094 kB / 467.2 MB, free: 3.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003903/0.4467, allocations: 1.782 MB / 469 MB, free: 2.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.4469, allocations: 161.6 kB / 469.1 MB, free: 1.957 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.4488, allocations: 1.282 MB / 470.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.4488, allocations: 36.95 kB / 470.4 MB, free: 1.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009473/0.4498, allocations: 0.8876 MB / 471.3 MB, free: 412 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.45, allocations: 222 kB / 471.5 MB, free: 216 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003193/0.4503, allocations: 225.1 kB / 471.8 MB, free: 72 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.4505, allocations: 352.3 kB / 472.1 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004753/0.451, allocations: 232.1 kB / 472.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009574/0.4519, allocations: 0.8016 MB / 473.1 MB, free: 14.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.4534, allocations: 1.119 MB / 474.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.4534, allocations: 5.5 kB / 474.3 MB, free: 13.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002051/0.4555, allocations: 1.172 MB / 475.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.63e-05/0.4555, allocations: 43.92 kB / 475.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/0.4555, allocations: 26.22 kB / 475.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.4558, allocations: 66.38 kB / 475.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007347/0.4565, allocations: 262 kB / 475.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/0.4588, allocations: 2.779 MB / 478.6 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.4599, allocations: 72.05 kB / 478.7 MB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.102e-05/0.46, allocations: 58.5 kB / 478.7 MB, free: 9.961 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006212/0.4606, allocations: 356.3 kB / 479.1 MB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.4608, allocations: 144.3 kB / 479.2 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/0.4619, allocations: 0.5481 MB / 479.8 MB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.462, allocations: 5.812 kB / 479.8 MB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.462, allocations: 5.297 kB / 479.8 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.462, allocations: 0 / 479.8 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003282/0.4652, allocations: 1.876 MB / 481.6 MB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.4653, allocations: 8.062 kB / 481.7 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004616/0.4657, allocations: 103.6 kB / 481.8 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001627/0.4659, allocations: 52.09 kB / 481.8 MB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/0.4659, allocations: 16.25 kB / 481.8 MB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/0.4681, allocations: 2.744 MB / 484.6 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.4681, allocations: 3.906 kB / 484.6 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.4699, allocations: 0.9348 MB / 485.5 MB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006108/0.4705, allocations: 256.2 kB / 485.8 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.4706, allocations: 16 kB / 485.8 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.4712, allocations: 39.97 kB / 485.8 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.4713, allocations: 47.83 kB / 485.9 MB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.4714, allocations: 23.98 kB / 485.9 MB, free: 3.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001412/0.4728, allocations: 0.8422 MB / 486.7 MB, free: 2.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4728, allocations: 8 kB / 486.7 MB, free: 2.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001357/0.4741, allocations: 304 kB / 487 MB, free: 2.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.002028/0.4762, allocations: 1.506 MB / 488.5 MB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.4779, allocations: 0.8942 MB / 489.4 MB, free: 152 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4779, allocations: 0 / 489.4 MB, free: 152 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000745/0.4787, allocations: 462.2 kB / 489.9 MB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.4804, allocations: 339.7 kB / 490.2 MB, free: 15.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/0.4972, allocations: 10.93 MB / 0.4894 GB, free: 3.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008972/0.4981, allocations: 1.178 MB / 0.4905 GB, free: 2.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005859/0.4987, allocations: 167.3 kB / 0.4907 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007191/0.4994, allocations: 0.5696 MB / 0.4913 GB, free: 1.676 MB / 398.1 MB Notification: Performance of SimCode: time 9.51e-07/0.4994, allocations: 0 / 0.4913 GB, free: 1.676 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06744/0.5668, allocations: 28.06 MB / 0.5187 GB, free: 5.945 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.33, allocations: 9.859 kB / 0.5187 GB, free: 5.941 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 20.002132489986252]