Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.0008608/0.0008608, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.0009975/0.0009975, 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.8818/0.8818, allocations: 177 MB / 204.1 MB, free: 5.742 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.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 324.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.708e-05/1.881e-05, allocations: 2.844 kB / 324.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004262/0.004281, allocations: 4.777 MB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.005951, allocations: 1.484 MB / 330.8 MB, free: 9.555 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.006196, allocations: 39.69 kB / 330.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.006496, allocations: 213.8 kB / 331.1 MB, free: 9.305 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005293/0.007025, allocations: 209.8 kB / 331.3 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005064/0.007532, allocations: 419.2 kB / 331.7 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006774/0.008209, allocations: 1.157 MB / 332.8 MB, free: 7.527 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003527/0.008562, allocations: 324.8 kB / 333.1 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.009034, allocations: 0.5923 MB / 333.7 MB, free: 6.598 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.009275, allocations: 290.9 kB / 334 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.009346, allocations: 84 kB / 334.1 MB, free: 6.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.009463, allocations: 96 kB / 334.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.542e-05/0.009559, allocations: 219 kB / 334.4 MB, free: 5.922 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.009729, allocations: 323 kB / 334.7 MB, free: 5.605 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007085/0.01044, allocations: 1.168 MB / 335.9 MB, free: 4.434 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.01044, allocations: 3.938 kB / 335.9 MB, free: 4.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01044, allocations: 0 / 335.9 MB, free: 4.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.01045, allocations: 4 kB / 335.9 MB, free: 4.426 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001121/0.01157, allocations: 1.252 MB / 337.2 MB, free: 3.137 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.01161, allocations: 15.98 kB / 337.2 MB, free: 3.121 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.01172, allocations: 152.2 kB / 337.3 MB, free: 2.965 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.01192, allocations: 151.1 kB / 337.5 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006648/0.01259, allocations: 0.5704 MB / 338 MB, free: 2.219 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.01262, allocations: 74 kB / 338.1 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.632e-05/0.0127, allocations: 104 kB / 338.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.01387, allocations: 1.085 MB / 339.3 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.01389, allocations: 15.88 kB / 339.3 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/0.01394, allocations: 40 kB / 339.4 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.01395, allocations: 24 kB / 339.4 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000657/0.01461, allocations: 0.5578 MB / 339.9 MB, free: 188 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002749/0.01736, allocations: 5.232 MB / 345.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.01768, allocations: 224.9 kB / 345.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004095/0.01809, allocations: 148.3 kB / 345.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.234e-05/0.01817, allocations: 7.984 kB / 345.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.0182, allocations: 42.5 kB / 345.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=28): time 2.124e-06/0.0182, allocations: 4 kB / 345.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.002105/0.0203, allocations: 1.592 MB / 347.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.02034, allocations: 81.11 kB / 347.3 MB, free: 8.473 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004442/0.02078, allocations: 0.6606 MB / 347.9 MB, free: 7.801 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.0208, allocations: 37.64 kB / 348 MB, free: 7.758 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.02105, allocations: 0.6161 MB / 348.6 MB, free: 7.133 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.891e-05/0.02112, allocations: 150.8 kB / 348.7 MB, free: 6.984 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.02123, allocations: 134.6 kB / 348.8 MB, free: 6.848 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.02134, allocations: 390.7 kB / 349.2 MB, free: 6.457 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.02152, allocations: 149.9 kB / 349.4 MB, free: 6.312 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.02183, allocations: 0.4896 MB / 349.9 MB, free: 5.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005478/0.02238, allocations: 0.6997 MB / 350.6 MB, free: 4.797 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.02238, allocations: 4 kB / 350.6 MB, free: 4.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006754/0.02306, allocations: 0.7159 MB / 351.3 MB, free: 4.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.02308, allocations: 12 kB / 351.3 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.02309, allocations: 12 kB / 351.3 MB, free: 4.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.02311, allocations: 16 kB / 351.3 MB, free: 4.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.02344, allocations: 199.6 kB / 351.5 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.02345, allocations: 27.91 kB / 351.5 MB, free: 3.809 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.02363, allocations: 40.16 kB / 351.6 MB, free: 3.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.02366, allocations: 39.98 kB / 351.6 MB, free: 3.73 MB / 314.7 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.0001841/0.02385, allocations: 229.5 kB / 351.8 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-05/0.02391, allocations: 83.48 kB / 351.9 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.783e-05/0.02398, allocations: 70.69 kB / 352 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.02398, allocations: 7.984 kB / 352 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.02399, allocations: 0 / 352 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.02399, allocations: 7.984 kB / 352 MB, free: 3.328 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.02537, allocations: 1.242 MB / 353.3 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.02537, allocations: 7.938 kB / 353.3 MB, free: 2.012 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002265/0.0256, allocations: 103.9 kB / 353.4 MB, free: 1.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.0256, allocations: 8.156 kB / 353.4 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.02562, allocations: 11.94 kB / 353.4 MB, free: 1.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.02562, allocations: 0 / 353.4 MB, free: 1.891 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.02563, allocations: 7.938 kB / 353.4 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005946/0.02622, allocations: 0.6974 MB / 354.1 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/0.02627, allocations: 67.48 kB / 354.2 MB, free: 1.086 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.02631, allocations: 19.88 kB / 354.2 MB, free: 1.066 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.02645, allocations: 23.98 kB / 354.2 MB, free: 1.043 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.02651, allocations: 31.94 kB / 354.2 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.02652, allocations: 8 kB / 354.2 MB, free: 1.004 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002904/0.02681, allocations: 431 kB / 354.7 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.02681, allocations: 0 / 354.7 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005159/0.02732, allocations: 136 kB / 354.8 MB, free: 464 kB / 314.7 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.0009958/0.02832, allocations: 1.25 MB / 356 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005442/0.02886, allocations: 421 kB / 356.5 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.02887, allocations: 0 / 356.5 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.02903, allocations: 147.4 kB / 356.6 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.02942, allocations: 71.23 kB / 356.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00531/0.03473, allocations: 6.034 MB / 362.7 MB, free: 8.016 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.03499, allocations: 413.4 kB / 363.1 MB, free: 7.582 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.03516, allocations: 94.05 kB / 363.2 MB, free: 7.488 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.03545, allocations: 400.3 kB / 363.6 MB, free: 7.098 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.03545, allocations: 0 / 363.6 MB, free: 7.098 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.05849, allocations: 12.57 MB / 376.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.909/6.967, allocations: 11.86 kB / 376.2 MB, free: 10.69 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.938498084433377]