Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit.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.0007985/0.0007985, 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.0008053/0.0008053, allocations: 156.9 kB / 23.94 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.8806/0.8806, allocations: 177 MB / 204.1 MB, free: 5.699 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.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ChuaCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ChuaCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ChuaCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.373e-05, allocations: 3.125 kB / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ChuaCircuit): time 0.002356/0.002379, allocations: 2.037 MB / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008692/0.003249, allocations: 0.5571 MB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.003364, allocations: 4 kB / 327.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.003485, allocations: 23.72 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.062e-05/0.003575, allocations: 67.42 kB / 327.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001917/0.003767, allocations: 55.84 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.004, allocations: 246.9 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.004159, allocations: 53.77 kB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.004312, allocations: 123.8 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.004416, allocations: 79.77 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.004451, allocations: 20 kB / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.683e-05/0.004478, allocations: 24 kB / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.629e-05/0.004514, allocations: 43.89 kB / 327.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.166e-05/0.004576, allocations: 71.83 kB / 327.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.004814, allocations: 247.2 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.004818, allocations: 0 / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.004819, allocations: 0 / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.004826, allocations: 0 / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006952/0.005521, allocations: 421.5 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.327e-05/0.005584, allocations: 11.98 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.716e-05/0.005641, allocations: 54.73 kB / 328.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.938e-05/0.00569, allocations: 20.8 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.006035, allocations: 173.4 kB / 328.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.00606, allocations: 16.31 kB / 328.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.25e-05/0.006093, allocations: 16.38 kB / 328.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.006415, allocations: 233.5 kB / 329.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.006425, allocations: 192 / 329.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.006444, allocations: 8.125 kB / 329.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.006451, allocations: 8 kB / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002051/0.006656, allocations: 143.9 kB / 329.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008784/0.007534, allocations: 0.657 MB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.007802, allocations: 150.5 kB / 330 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.007933, allocations: 88.83 kB / 330.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.007945, allocations: 4 kB / 330.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.007972, allocations: 30.56 kB / 330.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.114e-06/0.007974, allocations: 4 kB / 330.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003345/0.008308, allocations: 196.7 kB / 330.4 MB, free: 9.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.00834, allocations: 55.34 kB / 330.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.008452, allocations: 157.7 kB / 330.6 MB, free: 9.582 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.008472, allocations: 33.7 kB / 330.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.749e-05/0.008539, allocations: 132.2 kB / 330.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.008569, allocations: 43.64 kB / 330.8 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/0.008617, allocations: 37.67 kB / 330.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.091e-05/0.008708, allocations: 322.8 kB / 331.1 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.637e-05/0.008794, allocations: 51.97 kB / 331.2 MB, free: 8.945 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.008895, allocations: 69.69 kB / 331.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.009066, allocations: 121.3 kB / 331.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.009068, allocations: 0 / 331.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002257/0.009294, allocations: 177.4 kB / 331.5 MB, free: 8.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.00931, allocations: 12.03 kB / 331.6 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.009317, allocations: 0 / 331.6 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.009333, allocations: 0 / 331.6 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.009484, allocations: 43.91 kB / 331.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.009493, allocations: 7.938 kB / 331.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.977e-05/0.009552, allocations: 19.84 kB / 331.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.009561, allocations: 4 kB / 331.6 MB, free: 8.484 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.676e-05/0.009657, allocations: 129.8 kB / 331.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.009685, allocations: 11.94 kB / 331.8 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.009713, allocations: 20.78 kB / 331.8 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.009718, allocations: 4 kB / 331.8 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.009726, allocations: 3.938 kB / 331.8 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.009729, allocations: 0 / 331.8 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.009945, allocations: 220.6 kB / 332 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.009946, allocations: 0 / 332 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.01008, allocations: 39.92 kB / 332 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.01008, allocations: 0 / 332 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.01009, allocations: 4 kB / 332.1 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.01009, allocations: 3.984 kB / 332.1 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.0101, allocations: 3.938 kB / 332.1 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.01045, allocations: 298.4 kB / 332.3 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.97e-05/0.01047, allocations: 11.91 kB / 332.4 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.01049, allocations: 8 kB / 332.4 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.889e-05/0.01057, allocations: 15.97 kB / 332.4 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/0.01061, allocations: 11.92 kB / 332.4 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.01061, allocations: 4 kB / 332.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.22e-05/0.01067, allocations: 118.2 kB / 332.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01067, allocations: 4 kB / 332.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.01088, allocations: 47.89 kB / 332.6 MB, free: 7.484 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,C1.v,C2.v) * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004848/0.01136, allocations: 0.8326 MB / 333.4 MB, free: 6.625 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002116/0.01157, allocations: 116 kB / 333.5 MB, free: 6.512 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.01157, allocations: 4 kB / 333.5 MB, free: 6.508 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.094e-05/0.01165, allocations: 59.98 kB / 333.6 MB, free: 6.449 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.01191, allocations: 35.84 kB / 333.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.01368, allocations: 1.987 MB / 335.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.755e-05/0.01376, allocations: 112.1 kB / 335.7 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.288e-05/0.01383, allocations: 13.48 kB / 335.7 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.357e-05/0.0139, allocations: 52.48 kB / 335.8 MB, free: 4.148 MB / 298.7 MB Notification: Performance of SimCode: time 1.223e-06/0.0139, allocations: 3.938 kB / 335.8 MB, free: 4.145 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.03114, allocations: 4.202 MB / 340 MB, free: 56 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.658/6.689, allocations: 6.5 kB / 340 MB, free: 52 kB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ChuaCircuit_fmu --startTime=0 --stopTime=50000 --stepSize=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ChuaCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ChuaCircuit/ChuaCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ChuaCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[6013]=3000.000000 File[50110]=50000.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.794966422021389]