Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 184.6 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 44.03 kB / 371.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2386, allocations: 52.18 MB / 423.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006023/0.2446, allocations: 4.753 MB / 428.1 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00256/0.2472, allocations: 1.395 MB / 429.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003686/0.2475, allocations: 31.75 kB / 429.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000453/0.248, allocations: 221.8 kB / 429.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004752/0.2484, allocations: 198 kB / 430 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006908/0.2491, allocations: 395.4 kB / 430.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.2502, allocations: 1.115 MB / 431.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004972/0.2507, allocations: 332.9 kB / 431.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004458/0.2512, allocations: 426.2 kB / 432.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.2516, allocations: 433.6 kB / 432.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.2517, allocations: 84 kB / 432.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.2519, allocations: 91.94 kB / 432.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.2521, allocations: 211.1 kB / 433 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003607/0.2525, allocations: 409.7 kB / 433.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.2536, allocations: 1.186 MB / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.2536, allocations: 0 / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2536, allocations: 0 / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2536, allocations: 0 / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001813/0.2554, allocations: 1.275 MB / 435.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2555, allocations: 12.02 kB / 435.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.531e-05/0.2555, allocations: 26 kB / 435.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.2557, allocations: 152.2 kB / 436.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.2558, allocations: 139.2 kB / 436.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009869/0.2568, allocations: 0.5665 MB / 436.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.156e-05/0.2569, allocations: 74 kB / 436.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.257, allocations: 96 kB / 436.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.2587, allocations: 1.089 MB / 438 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.2588, allocations: 7.938 kB / 438 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-05/0.2588, allocations: 44 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.2589, allocations: 24 kB / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.26, allocations: 0.5578 MB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004744/0.2647, allocations: 5.249 MB / 443.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005634/0.2653, allocations: 216.9 kB / 444.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003155/0.2656, allocations: 149.6 kB / 444.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-05/0.2657, allocations: 8 kB / 444.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.2657, allocations: 38.56 kB / 444.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.144e-06/0.2657, allocations: 0 / 444.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003734/0.2695, allocations: 1.599 MB / 445.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.2695, allocations: 85.05 kB / 446 MB, free: 7.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006875/0.2702, allocations: 0.6296 MB / 446.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.2703, allocations: 33.7 kB / 446.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004225/0.2707, allocations: 0.6161 MB / 447.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.2708, allocations: 158.7 kB / 447.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.271, allocations: 134.6 kB / 447.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.2712, allocations: 386.8 kB / 447.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003045/0.2715, allocations: 149.9 kB / 448.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005523/0.272, allocations: 0.4894 MB / 448.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009222/0.2729, allocations: 0.6959 MB / 449.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.2729, allocations: 4 kB / 449.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001182/0.2741, allocations: 0.719 MB / 450 MB, free: 2.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.2741, allocations: 12.22 kB / 450 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.2742, allocations: 12 kB / 450 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.048e-05/0.2742, allocations: 23.94 kB / 450 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006245/0.2748, allocations: 191.7 kB / 450.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-05/0.2748, allocations: 23.92 kB / 450.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.2752, allocations: 35.98 kB / 450.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.825e-05/0.2752, allocations: 36 kB / 450.3 MB, free: 2.555 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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 0.0002921/0.2755, allocations: 233.5 kB / 450.5 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.2756, allocations: 79.42 kB / 450.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.2758, allocations: 82.62 kB / 450.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.2758, allocations: 11.88 kB / 450.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2758, allocations: 0 / 450.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2758, allocations: 0 / 450.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/0.2778, allocations: 1.238 MB / 451.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2778, allocations: 0 / 451.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004785/0.2783, allocations: 107.8 kB / 452 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.2783, allocations: 7.938 kB / 452.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.2783, allocations: 15.98 kB / 452.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.758e-06/0.2783, allocations: 4 kB / 452.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2783, allocations: 4.156 kB / 452.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.2795, allocations: 0.6961 MB / 452.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.939e-05/0.2796, allocations: 67.48 kB / 452.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.473e-05/0.2796, allocations: 12.03 kB / 452.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.2799, allocations: 27.98 kB / 452.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.28, allocations: 27.95 kB / 452.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.28, allocations: 15.98 kB / 452.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000491/0.2805, allocations: 423 kB / 453.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2805, allocations: 0 / 453.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006608/0.2812, allocations: 139.9 kB / 453.5 MB, free: 15.28 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.001377/0.2826, allocations: 1.258 MB / 454.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008044/0.2834, allocations: 420.7 kB / 455.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2834, allocations: 0 / 455.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.2837, allocations: 141.3 kB / 455.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.2843, allocations: 71.55 kB / 455.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008524/0.2928, allocations: 6.138 MB / 461.5 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.2932, allocations: 413.3 kB / 461.9 MB, free: 6.293 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000257/0.2935, allocations: 94 kB / 462 MB, free: 6.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004826/0.294, allocations: 395.2 kB / 462.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.294, allocations: 4 kB / 462.4 MB, free: 5.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03883/0.3328, allocations: 12.25 MB / 474.6 MB, free: 9.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.99, allocations: 14.83 kB / 474.6 MB, free: 9.805 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.342176166945137]