Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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.001872/0.001872, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.002244/0.002244, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.497/1.497, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 59.89 kB / 373.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1121, allocations: 53.33 MB / 426.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004507/0.1167, allocations: 2.919 MB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1181, allocations: 0.7089 MB / 430.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001906/0.1183, allocations: 8 kB / 430.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000226/0.1185, allocations: 59.38 kB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.1187, allocations: 95.17 kB / 430.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.119, allocations: 87.83 kB / 430.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004405/0.1194, allocations: 374.4 kB / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002418/0.1197, allocations: 117.3 kB / 431 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003176/0.12, allocations: 143.5 kB / 431.2 MB, free: 460 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.1202, allocations: 155.3 kB / 431.3 MB, free: 304 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.063e-05/0.1203, allocations: 36 kB / 431.4 MB, free: 268 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.228e-05/0.1203, allocations: 32 kB / 431.4 MB, free: 236 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.954e-05/0.1204, allocations: 75.75 kB / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2278/0.3482, allocations: 174.2 kB / 431.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008979/0.3491, allocations: 372.2 kB / 432 MB, free: 8.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.687e-06/0.3491, allocations: 2.25 kB / 432 MB, free: 8.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3491, allocations: 0 / 432 MB, free: 8.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.904e-05/0.3492, allocations: 0 / 432 MB, free: 8.062 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001082/0.3502, allocations: 0.6137 MB / 432.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.956e-05/0.3503, allocations: 10.52 kB / 432.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.106e-05/0.3504, allocations: 70.19 kB / 432.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.3505, allocations: 40.8 kB / 432.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005055/0.351, allocations: 269 kB / 433 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.351, allocations: 21.66 kB / 433 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.3511, allocations: 33.31 kB / 433.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.3517, allocations: 281 kB / 433.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.3517, allocations: 1.125 kB / 433.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.3518, allocations: 14.06 kB / 433.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.3518, allocations: 7.438 kB / 433.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005148/0.3523, allocations: 211.9 kB / 433.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.3539, allocations: 0.9737 MB / 434.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.3542, allocations: 156.5 kB / 434.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.3544, allocations: 72.14 kB / 434.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.3545, allocations: 2.312 kB / 434.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.3545, allocations: 35.88 kB / 434.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.653e-06/0.3545, allocations: 1.062 kB / 434.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005565/0.355, allocations: 219.7 kB / 435 MB, free: 6.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.3551, allocations: 53.53 kB / 435.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.3553, allocations: 209.5 kB / 435.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3553, allocations: 30.14 kB / 435.3 MB, free: 6.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.612e-05/0.3554, allocations: 195.3 kB / 435.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.3554, allocations: 72.19 kB / 435.6 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.976e-05/0.3555, allocations: 41.27 kB / 435.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.666e-05/0.3556, allocations: 334.4 kB / 435.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.3557, allocations: 62.41 kB / 436 MB, free: 5.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.3559, allocations: 122.7 kB / 436.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/0.3562, allocations: 182.2 kB / 436.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3562, allocations: 0.5 kB / 436.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004527/0.3567, allocations: 249 kB / 436.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3567, allocations: 7.312 kB / 436.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.3567, allocations: 1.156 kB / 436.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.3568, allocations: 4.641 kB / 436.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.3571, allocations: 61.58 kB / 436.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.3571, allocations: 4.109 kB / 436.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.3572, allocations: 32.05 kB / 436.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.3572, allocations: 8.672 kB / 436.6 MB, free: 5.809 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001368/0.3574, allocations: 145.9 kB / 436.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.3574, allocations: 22.25 kB / 436.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004528/0.3579, allocations: 189.3 kB / 437 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3579, allocations: 2.438 kB / 437 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.3579, allocations: 8.438 kB / 437 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.3579, allocations: 0.6094 kB / 437 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004605/0.3584, allocations: 323 kB / 437.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3584, allocations: 1.062 kB / 437.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.3587, allocations: 52.19 kB / 437.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3587, allocations: 0.7969 kB / 437.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.3587, allocations: 6.625 kB / 437.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3587, allocations: 2.359 kB / 437.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3587, allocations: 0 / 437.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006144/0.3593, allocations: 352 kB / 437.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.65e-05/0.3594, allocations: 108 kB / 437.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.489e-05/0.3594, allocations: 1.625 kB / 437.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.3596, allocations: 16.27 kB / 437.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.686e-05/0.3597, allocations: 10.58 kB / 437.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.3597, allocations: 12.09 kB / 437.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001484/0.3598, allocations: 150.7 kB / 438 MB, free: 5.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3598, allocations: 0 / 438 MB, free: 5.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003908/0.3602, allocations: 73 kB / 438.1 MB, free: 5.074 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (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 Backend phase and start with SimCode phase: time 0.0007755/0.361, allocations: 0.8909 MB / 439 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004418/0.3614, allocations: 151.8 kB / 439.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3614, allocations: 0 / 439.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.3616, allocations: 78.39 kB / 439.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.362, allocations: 31.47 kB / 439.2 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.3654, allocations: 2.706 MB / 441.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.3657, allocations: 0.7695 MB / 442.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.3658, allocations: 24.09 kB / 442.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.3659, allocations: 91.52 kB / 442.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3659, allocations: 0 / 442.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03052/0.3964, allocations: 4.557 MB / 447.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.254/8.65, allocations: 1.125 kB / 447.4 MB, free: 1.242 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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: 11.513494916260242]