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.001976/0.001976, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.002205/0.002205, allocations: 220.7 kB / 21.46 MB, free: 1.582 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 2.019/2.019, allocations: 230.4 MB / 254.7 MB, free: 15.21 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_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 60.08 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1518, allocations: 53.37 MB / 427.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01121/0.163, allocations: 8.133 MB / 435.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005429/0.1685, allocations: 2.676 MB / 437.9 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.1696, allocations: 31.88 kB / 437.9 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00174/0.1713, allocations: 0.5754 MB / 438.5 MB, free: 9.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001555/0.1729, allocations: 0.4886 MB / 439 MB, free: 8.676 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006284/0.1735, allocations: 251.7 kB / 439.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002153/0.1757, allocations: 1.477 MB / 440.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007358/0.1764, allocations: 406.7 kB / 441.1 MB, free: 6.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.1775, allocations: 0.572 MB / 441.7 MB, free: 5.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008148/0.1783, allocations: 0.6027 MB / 442.3 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001883/0.1785, allocations: 140 kB / 442.4 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003747/0.1789, allocations: 176 kB / 442.6 MB, free: 5.035 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.1791, allocations: 275 kB / 442.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007678/0.1799, allocations: 0.6648 MB / 443.5 MB, free: 4.098 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002389/0.1823, allocations: 1.735 MB / 445.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.1823, allocations: 0 / 445.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1823, allocations: 0 / 445.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.576e-05/0.1823, allocations: 4 kB / 445.3 MB, free: 2.352 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003016/0.1854, allocations: 1.471 MB / 446.7 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.1854, allocations: 8.031 kB / 446.7 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.587e-05/0.1855, allocations: 26.19 kB / 446.8 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001837/0.1856, allocations: 156.4 kB / 446.9 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007012/0.1863, allocations: 192 kB / 447.1 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2381/0.4244, allocations: 0.7473 MB / 447.8 MB, free: 23.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.802e-05/0.4245, allocations: 71.97 kB / 447.9 MB, free: 23.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.4246, allocations: 100.8 kB / 448 MB, free: 23.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/0.4263, allocations: 0.9299 MB / 448.9 MB, free: 23.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/0.4264, allocations: 8.469 kB / 448.9 MB, free: 23.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.983e-05/0.4264, allocations: 39.12 kB / 449 MB, free: 23.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/0.4265, allocations: 28.56 kB / 449 MB, free: 23.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.4276, allocations: 0.6323 MB / 449.6 MB, free: 23.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004722/0.4323, allocations: 3.895 MB / 453.5 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006234/0.4329, allocations: 417.8 kB / 454 MB, free: 20.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000582/0.4335, allocations: 262.8 kB / 454.2 MB, free: 20.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.4335, allocations: 4.578 kB / 454.2 MB, free: 20.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.4335, allocations: 42.16 kB / 454.3 MB, free: 20.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.425e-06/0.4335, allocations: 0 / 454.3 MB, free: 20.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002521/0.4361, allocations: 1.403 MB / 455.7 MB, free: 19.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.4361, allocations: 82.86 kB / 455.7 MB, free: 19.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.4372, allocations: 0.8255 MB / 456.6 MB, free: 19.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.4372, allocations: 31.86 kB / 456.6 MB, free: 19.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/0.4375, allocations: 0.5721 MB / 457.2 MB, free: 19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.393e-05/0.4376, allocations: 167.2 kB / 457.3 MB, free: 18.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.4378, allocations: 131 kB / 457.5 MB, free: 18.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.618e-05/0.4378, allocations: 336 kB / 457.8 MB, free: 18.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.4382, allocations: 164.9 kB / 457.9 MB, free: 18.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.4386, allocations: 463.2 kB / 458.4 MB, free: 17.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008017/0.4394, allocations: 0.6649 MB / 459.1 MB, free: 17.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.4394, allocations: 2.812 kB / 459.1 MB, free: 17.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001286/0.4407, allocations: 0.7675 MB / 459.8 MB, free: 17.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.4407, allocations: 8.969 kB / 459.8 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.4407, allocations: 11.14 kB / 459.9 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.441, allocations: 85.61 kB / 459.9 MB, free: 17.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/0.4415, allocations: 154.5 kB / 460.1 MB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.4433, allocations: 3.134 MB / 463.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005453/0.4438, allocations: 35.34 kB / 463.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/0.4439, allocations: 36.91 kB / 463.3 MB, free: 13.93 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 (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.0003174/0.4442, allocations: 257.3 kB / 463.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.4443, allocations: 94.56 kB / 463.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008756/0.4452, allocations: 495.4 kB / 464.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.4452, allocations: 6.656 kB / 464.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4452, allocations: 2.047 kB / 464.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.4452, allocations: 1.828 kB / 464.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.4473, allocations: 1.436 MB / 465.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.4473, allocations: 6.406 kB / 465.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002926/0.4476, allocations: 72.25 kB / 465.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.4478, allocations: 67.66 kB / 465.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.4478, allocations: 17.52 kB / 465.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001592/0.4494, allocations: 3.128 MB / 468.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4494, allocations: 2.062 kB / 468.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.4506, allocations: 0.77 MB / 469.6 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.4509, allocations: 203.3 kB / 469.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.388e-05/0.451, allocations: 9.125 kB / 469.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004011/0.4514, allocations: 23.41 kB / 469.9 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.915e-05/0.4515, allocations: 34.95 kB / 469.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.4515, allocations: 19.11 kB / 469.9 MB, free: 8.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008214/0.4523, allocations: 0.5678 MB / 470.5 MB, free: 8.578 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.4523, allocations: 0 / 470.5 MB, free: 8.578 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009735/0.4533, allocations: 204 kB / 470.7 MB, free: 8.559 MB / 366.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 (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.001501/0.4548, allocations: 1.339 MB / 472 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.456, allocations: 0.6716 MB / 472.7 MB, free: 7.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.456, allocations: 4.062 kB / 472.7 MB, free: 7.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005968/0.4566, allocations: 440.7 kB / 473.1 MB, free: 6.855 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.4576, allocations: 233 kB / 473.3 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.4687, allocations: 7.304 MB / 480.7 MB, free: 2.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006563/0.4693, allocations: 1.01 MB / 481.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005437/0.4699, allocations: 103 kB / 481.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004244/0.4703, allocations: 373.5 kB / 482.1 MB, free: 1.391 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4703, allocations: 3.172 kB / 482.1 MB, free: 1.391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07663/0.547, allocations: 19.27 MB / 0.4897 GB, free: 3.805 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.21, allocations: 4.062 kB / 0.4897 GB, free: 3.801 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.00207698700251]