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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001501/0.001501, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001827/0.001827, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 55.44 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09154, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006503/0.09808, allocations: 5.394 MB / 363 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.1008, allocations: 1.516 MB / 364.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007198/0.1015, allocations: 23.88 kB / 364.5 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000722/0.1023, allocations: 217.8 kB / 364.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009676/0.1033, allocations: 198 kB / 364.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000902/0.1042, allocations: 415.3 kB / 365.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.1054, allocations: 1.119 MB / 366.4 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006006/0.106, allocations: 488.2 kB / 366.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004225/0.1064, allocations: 398.2 kB / 367.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003898/0.1068, allocations: 433.6 kB / 367.7 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.1069, allocations: 84 kB / 367.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.1071, allocations: 104 kB / 367.9 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001687/0.1073, allocations: 219 kB / 368.1 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003923/0.1077, allocations: 0.4932 MB / 368.6 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009722/0.1087, allocations: 1.125 MB / 369.8 MB, free: 1.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1087, allocations: 7.875 kB / 369.8 MB, free: 1.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1087, allocations: 0 / 369.8 MB, free: 1.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.1087, allocations: 0 / 369.8 MB, free: 1.738 MB / 302.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.001564/0.1103, allocations: 1.317 MB / 371.1 MB, free: 376 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1104, allocations: 8.031 kB / 371.1 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.1105, allocations: 152.2 kB / 371.2 MB, free: 208 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/0.1109, allocations: 150.4 kB / 371.4 MB, free: 56 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1453/0.2562, allocations: 0.6126 MB / 372 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.372e-05/0.2563, allocations: 80.88 kB / 372.1 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.2565, allocations: 102.5 kB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.2583, allocations: 1.027 MB / 373.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.2583, allocations: 7.984 kB / 373.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.708e-05/0.2584, allocations: 44.78 kB / 373.2 MB, free: 19.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.2585, allocations: 25.59 kB / 373.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.2596, allocations: 0.5609 MB / 373.8 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003712/0.2633, allocations: 5.519 MB / 379.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.2638, allocations: 231.5 kB / 379.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002727/0.2641, allocations: 159.3 kB / 379.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001512/0.2642, allocations: 86.86 kB / 379.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.2643, allocations: 37.61 kB / 379.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.325e-06/0.2643, allocations: 0 / 379.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003471/0.2677, allocations: 1.726 MB / 381.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.2678, allocations: 81.42 kB / 381.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006202/0.2684, allocations: 0.6393 MB / 382.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.2684, allocations: 37.91 kB / 382.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.2687, allocations: 0.5922 MB / 382.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.691e-05/0.2688, allocations: 155.7 kB / 383.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.2689, allocations: 134.1 kB / 383.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.968e-05/0.269, allocations: 383.8 kB / 383.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.2693, allocations: 151.6 kB / 383.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.2697, allocations: 0.4996 MB / 384.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006999/0.2704, allocations: 0.697 MB / 384.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.2705, allocations: 3.625 kB / 384.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001045/0.2715, allocations: 0.7145 MB / 385.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2715, allocations: 9.125 kB / 385.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.2716, allocations: 17.66 kB / 385.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.2716, allocations: 16.09 kB / 385.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005962/0.2722, allocations: 198.8 kB / 385.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.236e-05/0.2722, allocations: 27.23 kB / 385.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.2726, allocations: 33.98 kB / 385.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/0.2726, allocations: 36.5 kB / 386 MB, free: 10.34 MB / 302.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.0002314/0.2729, allocations: 237.4 kB / 386.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.273, allocations: 74.5 kB / 386.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.2731, allocations: 74.92 kB / 386.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.2731, allocations: 4.344 kB / 386.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.2731, allocations: 1.188 kB / 386.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.2731, allocations: 3.297 kB / 386.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.275, allocations: 1.337 MB / 387.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.275, allocations: 1.531 kB / 387.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004524/0.2755, allocations: 103.1 kB / 387.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.2755, allocations: 3.406 kB / 387.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.2755, allocations: 11.73 kB / 387.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.217e-06/0.2755, allocations: 2.312 kB / 387.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2755, allocations: 2.125 kB / 387.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008705/0.2764, allocations: 0.7056 MB / 388.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.2765, allocations: 141.5 kB / 388.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.293e-05/0.2766, allocations: 9.656 kB / 388.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.2769, allocations: 21.27 kB / 388.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.277, allocations: 34.17 kB / 388.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.277, allocations: 22.55 kB / 388.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004375/0.2774, allocations: 427 kB / 389.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2774, allocations: 0 / 389.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006502/0.2781, allocations: 136.5 kB / 389.3 MB, free: 8.488 MB / 302.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.001022/0.2791, allocations: 1.257 MB / 390.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007637/0.2799, allocations: 446.2 kB / 391 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2799, allocations: 1.438 kB / 391 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.2802, allocations: 152.2 kB / 391.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005269/0.2807, allocations: 82.84 kB / 391.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007243/0.288, allocations: 6.375 MB / 397.6 MB, free: 2.941 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.2885, allocations: 1.011 MB / 398.6 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003174/0.2888, allocations: 90.03 kB / 398.7 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/0.2891, allocations: 391.8 kB / 399.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.2891, allocations: 0 / 399.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1106/0.3997, allocations: 11.43 MB / 410.5 MB, free: 8.465 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.264/8.664, allocations: 3.953 kB / 410.5 MB, free: 8.461 MB / 318.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches