Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001417, allocations: 110.5 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 59.92 kB / 328.1 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1064, allocations: 46.61 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.2226/0.329, allocations: 5.334 MB / 380 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.3317, allocations: 1.478 MB / 381.5 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004012/0.3321, allocations: 28.02 kB / 381.5 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004453/0.3326, allocations: 219.2 kB / 381.7 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004791/0.3331, allocations: 193.7 kB / 381.9 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008095/0.3339, allocations: 396.9 kB / 382.3 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.335, allocations: 1.125 MB / 383.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007268/0.3358, allocations: 489.1 kB / 383.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004836/0.3363, allocations: 395.8 kB / 384.3 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004221/0.3367, allocations: 431.4 kB / 384.7 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.3368, allocations: 85.25 kB / 384.8 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.337, allocations: 95.62 kB / 384.9 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001618/0.3372, allocations: 213 kB / 385.1 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003814/0.3376, allocations: 0.4951 MB / 385.6 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.3391, allocations: 1.179 MB / 386.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3391, allocations: 0 / 386.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3391, allocations: 0 / 386.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.782e-05/0.3391, allocations: 0 / 386.8 MB, free: 7.07 MB / 318.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.002052/0.3412, allocations: 1.342 MB / 388.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3412, allocations: 9.719 kB / 388.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001634/0.3414, allocations: 152.6 kB / 388.3 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.3416, allocations: 128.6 kB / 388.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.3427, allocations: 0.6599 MB / 389.1 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.03e-05/0.3428, allocations: 81.44 kB / 389.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3429, allocations: 101.6 kB / 389.2 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.3446, allocations: 1.025 MB / 390.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.3447, allocations: 7.25 kB / 390.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-05/0.3447, allocations: 44 kB / 390.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.803e-05/0.3448, allocations: 25.97 kB / 390.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.3459, allocations: 0.5571 MB / 390.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00451/0.3504, allocations: 5.498 MB / 396.4 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006549/0.3511, allocations: 252 kB / 396.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/0.3514, allocations: 153 kB / 396.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001549/0.3516, allocations: 89.34 kB / 396.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.459e-05/0.3517, allocations: 40.62 kB / 396.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.564e-06/0.3517, allocations: 0 / 396.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004315/0.356, allocations: 1.73 MB / 398.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.3561, allocations: 85.58 kB / 398.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008581/0.357, allocations: 0.6367 MB / 399.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.357, allocations: 30.95 kB / 399.4 MB, free: 14.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004943/0.3575, allocations: 0.6199 MB / 400 MB, free: 13.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.3576, allocations: 155.2 kB / 400.2 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.3579, allocations: 134.6 kB / 400.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.3581, allocations: 388.4 kB / 400.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.3584, allocations: 151.3 kB / 400.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000631/0.3591, allocations: 0.4911 MB / 401.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.3602, allocations: 0.7047 MB / 402 MB, free: 11.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.463e-06/0.3602, allocations: 4.406 kB / 402 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001382/0.3616, allocations: 0.71 MB / 402.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.3616, allocations: 10.81 kB / 402.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.3616, allocations: 15.66 kB / 402.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.147e-05/0.3617, allocations: 15.94 kB / 402.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006513/0.3623, allocations: 207.8 kB / 403 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.482e-05/0.3624, allocations: 23.34 kB / 403 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003992/0.3628, allocations: 32.69 kB / 403 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.3628, allocations: 36.75 kB / 403.1 MB, free: 11.62 MB / 334.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.000364/0.3632, allocations: 222.2 kB / 403.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.3633, allocations: 83.83 kB / 403.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001414/0.3635, allocations: 73.42 kB / 403.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.3635, allocations: 12.72 kB / 403.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.3635, allocations: 5.312 kB / 403.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3635, allocations: 3.109 kB / 403.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002464/0.366, allocations: 1.31 MB / 404.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.366, allocations: 6.75 kB / 404.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.3665, allocations: 107.3 kB / 404.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.3665, allocations: 6.688 kB / 404.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.3666, allocations: 10.64 kB / 404.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.3666, allocations: 7.734 kB / 404.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.3666, allocations: 5.312 kB / 404.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.3678, allocations: 0.7146 MB / 405.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.3679, allocations: 146.6 kB / 405.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/0.368, allocations: 10.03 kB / 405.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.3683, allocations: 20.73 kB / 405.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.699e-05/0.3684, allocations: 35.69 kB / 405.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.3684, allocations: 12.66 kB / 405.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000573/0.369, allocations: 419 kB / 406.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.92e-07/0.369, allocations: 1.406 kB / 406.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008132/0.3698, allocations: 139.9 kB / 406.4 MB, free: 9.754 MB / 334.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.001611/0.3715, allocations: 1.252 MB / 407.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000945/0.3724, allocations: 439.4 kB / 408.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3724, allocations: 2.969 kB / 408.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.3727, allocations: 156.3 kB / 408.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.3733, allocations: 76.2 kB / 408.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/0.3859, allocations: 6.133 MB / 414.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009013/0.3869, allocations: 0.9965 MB / 415.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003534/0.3872, allocations: 97.25 kB / 415.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006114/0.3879, allocations: 392.2 kB / 415.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3879, allocations: 0 / 415.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04026/0.4281, allocations: 11.66 MB / 427.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.977/9.405, allocations: 11.84 kB / 427.6 MB, free: 8.488 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches