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.0006997/0.0006998, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000784/0.000784, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002424/0.0002424, allocations: 8.188 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1098, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005945/0.1158, allocations: 4.935 MB / 364.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.1187, allocations: 1.492 MB / 365.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008116/0.1196, allocations: 27.81 kB / 365.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.1202, allocations: 158.6 kB / 366 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.1213, allocations: 150.7 kB / 366.1 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.1224, allocations: 359.6 kB / 366.5 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.1236, allocations: 1.072 MB / 367.5 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005625/0.1242, allocations: 427.4 kB / 368 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003972/0.1246, allocations: 334.2 kB / 368.3 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.1249, allocations: 369.6 kB / 368.6 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.53e-05/0.125, allocations: 43.94 kB / 368.7 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.1252, allocations: 56 kB / 368.7 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.1253, allocations: 163.1 kB / 368.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003238/0.1256, allocations: 474.7 kB / 369.4 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007566/0.1264, allocations: 1.008 MB / 370.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1264, allocations: 4 kB / 370.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.1264, allocations: 4 kB / 370.4 MB, free: 2.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1264, allocations: 0 / 370.4 MB, free: 2.09 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.001538/0.128, allocations: 1.13 MB / 371.5 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.128, allocations: 8.031 kB / 371.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001628/0.1282, allocations: 156.2 kB / 371.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000359/0.1286, allocations: 146.5 kB / 371.8 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.173/0.3016, allocations: 0.6212 MB / 372.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.3018, allocations: 79.03 kB / 372.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002415/0.302, allocations: 98.78 kB / 372.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.3041, allocations: 1.031 MB / 373.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.3041, allocations: 11.41 kB / 373.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.3042, allocations: 42.17 kB / 373.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/0.3042, allocations: 30.12 kB / 373.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.3053, allocations: 0.5682 MB / 374.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004372/0.3097, allocations: 5.534 MB / 379.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004967/0.3102, allocations: 234.8 kB / 380 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.3105, allocations: 157.7 kB / 380.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.3107, allocations: 84.17 kB / 380.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.3107, allocations: 44.64 kB / 380.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.004e-06/0.3107, allocations: 0 / 380.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003264/0.314, allocations: 1.775 MB / 382.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.274e-05/0.314, allocations: 85.33 kB / 382.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005967/0.3146, allocations: 0.6436 MB / 382.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.3146, allocations: 30.89 kB / 382.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.3149, allocations: 0.6008 MB / 383.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.99e-05/0.315, allocations: 147.8 kB / 383.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.788e-05/0.3151, allocations: 64.31 kB / 383.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3152, allocations: 388.2 kB / 384 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.3155, allocations: 155.2 kB / 384.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.3159, allocations: 0.4984 MB / 384.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008224/0.3167, allocations: 0.7221 MB / 385.4 MB, free: 10 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3168, allocations: 2.844 kB / 385.4 MB, free: 10 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001168/0.3179, allocations: 0.7258 MB / 386.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.318, allocations: 13.5 kB / 386.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.318, allocations: 12.34 kB / 386.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.331e-05/0.318, allocations: 16.5 kB / 386.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006448/0.3187, allocations: 206.1 kB / 386.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-05/0.3187, allocations: 23.25 kB / 386.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003632/0.3191, allocations: 41.34 kB / 386.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.108e-05/0.3192, allocations: 36.19 kB / 386.5 MB, free: 9.652 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.0002677/0.3194, allocations: 236.8 kB / 386.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.3196, allocations: 83.77 kB / 386.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/0.3197, allocations: 74.08 kB / 386.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3197, allocations: 4.703 kB / 386.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.3197, allocations: 1.406 kB / 386.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.3197, allocations: 6.297 kB / 386.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.3219, allocations: 1.351 MB / 388.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.322, allocations: 5.766 kB / 388.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004689/0.3224, allocations: 118.5 kB / 388.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.3225, allocations: 3.281 kB / 388.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.3225, allocations: 9.125 kB / 388.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.3225, allocations: 4.5 kB / 388.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3225, allocations: 2.156 kB / 388.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.3236, allocations: 0.7242 MB / 389.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.3237, allocations: 144.9 kB / 389.2 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.227e-05/0.3237, allocations: 9.516 kB / 389.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.324, allocations: 33.25 kB / 389.3 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.235e-05/0.3241, allocations: 29.06 kB / 389.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.3242, allocations: 13.94 kB / 389.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005735/0.3248, allocations: 426.8 kB / 389.7 MB, free: 7.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3248, allocations: 0 / 389.7 MB, free: 7.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007188/0.3255, allocations: 137.4 kB / 389.9 MB, free: 7.797 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.001237/0.3267, allocations: 1.286 MB / 391.2 MB, free: 6.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008795/0.3276, allocations: 448.1 kB / 391.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3276, allocations: 0 / 391.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003137/0.328, allocations: 163.5 kB / 391.8 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006891/0.3286, allocations: 78.09 kB / 391.8 MB, free: 6.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007761/0.3364, allocations: 6.939 MB / 398.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.3369, allocations: 1.007 MB / 399.8 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002899/0.3372, allocations: 96.14 kB / 399.9 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.3375, allocations: 388.6 kB / 400.3 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3375, allocations: 3.938 kB / 400.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.3611, allocations: 10.85 MB / 411.1 MB, free: 7.746 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.3613, allocations: 216.6 kB / 411.3 MB, free: 7.484 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.259, allocations: 0 / 411.3 MB, free: 7.484 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