Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",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.001939/0.001939, allocations: 114.5 kB / 17.73 MB, free: 5.297 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.002308/0.002308, allocations: 187 kB / 18.67 MB, free: 4.367 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.629/1.629, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001723/0.001723, allocations: 56.39 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1052, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004593/0.1098, allocations: 2.75 MB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.1113, allocations: 0.6823 MB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.1114, allocations: 4 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.1117, allocations: 51.52 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1119, allocations: 91.17 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.1122, allocations: 83.89 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000524/0.1128, allocations: 386.3 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.1131, allocations: 122.9 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.1133, allocations: 155.4 kB / 379 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/0.1136, allocations: 159.4 kB / 379.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.1137, allocations: 39.94 kB / 379.2 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.332e-05/0.1138, allocations: 32 kB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.415e-05/0.1139, allocations: 71.75 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.1141, allocations: 155.3 kB / 379.4 MB, free: 280 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2205/0.3346, allocations: 382.3 kB / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.3347, allocations: 3.469 kB / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.3347, allocations: 1.375 kB / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.446e-05/0.3347, allocations: 0 / 379.8 MB, free: 10.09 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001528/0.3363, allocations: 0.6522 MB / 380.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.3364, allocations: 12.28 kB / 380.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.539e-05/0.3364, allocations: 58.59 kB / 380.5 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.315e-05/0.3365, allocations: 41.33 kB / 380.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004836/0.337, allocations: 270.7 kB / 380.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.337, allocations: 18.06 kB / 380.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.71e-05/0.3371, allocations: 30.38 kB / 380.9 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000741/0.3378, allocations: 300.7 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.3379, allocations: 0.8125 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.3379, allocations: 9.438 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3379, allocations: 5.375 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008577/0.3388, allocations: 253.1 kB / 381.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3405, allocations: 1.089 MB / 382.5 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009282/0.3415, allocations: 215.5 kB / 382.7 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.3419, allocations: 93.31 kB / 382.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.3419, allocations: 1.688 kB / 382.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005492/0.3425, allocations: 168.2 kB / 383 MB, free: 8.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 4.188e-06/0.3425, allocations: 0 / 383 MB, free: 8.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.00237/0.3449, allocations: 0.512 MB / 383.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.345, allocations: 109.5 kB / 383.6 MB, free: 8.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.3454, allocations: 283.7 kB / 383.9 MB, free: 8.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.3455, allocations: 31.52 kB / 383.9 MB, free: 8.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3456, allocations: 196.5 kB / 384.1 MB, free: 8.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.3456, allocations: 46.61 kB / 384.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.3457, allocations: 50.31 kB / 384.2 MB, free: 7.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.471e-05/0.3458, allocations: 337.1 kB / 384.5 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.3462, allocations: 90.64 kB / 384.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.3466, allocations: 205.1 kB / 384.8 MB, free: 7.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007099/0.3473, allocations: 300.3 kB / 385.1 MB, free: 7.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3473, allocations: 5 kB / 385.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001348/0.3487, allocations: 425.7 kB / 385.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/0.3488, allocations: 34.8 kB / 385.6 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3488, allocations: 2.781 kB / 385.6 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004185/0.3492, allocations: 80.22 kB / 385.6 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.3495, allocations: 45.78 kB / 385.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.3517, allocations: 1.715 MB / 387.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.3521, allocations: 61.22 kB / 387.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-05/0.3522, allocations: 13.17 kB / 387.5 MB, free: 5.832 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.3524, allocations: 156.4 kB / 387.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.3524, allocations: 31.05 kB / 387.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.07e-05/0.3525, allocations: 28.33 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.3525, allocations: 1.188 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3525, allocations: 2.516 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3525, allocations: 1.406 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003201/0.3528, allocations: 301.4 kB / 388 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3528, allocations: 1.344 kB / 388 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.353, allocations: 17.97 kB / 388 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002948/0.3533, allocations: 67.22 kB / 388.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.3533, allocations: 6.109 kB / 388.1 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.3552, allocations: 1.707 MB / 389.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3552, allocations: 6.875 kB / 389.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.3564, allocations: 309.3 kB / 390.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.3565, allocations: 115 kB / 390.2 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.3565, allocations: 11.05 kB / 390.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.3568, allocations: 26.02 kB / 390.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.357, allocations: 28.8 kB / 390.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.357, allocations: 2.562 kB / 390.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.3572, allocations: 204.5 kB / 390.5 MB, free: 3.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.142e-06/0.3572, allocations: 1.031 kB / 390.5 MB, free: 3.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004143/0.3576, allocations: 82.16 kB / 390.5 MB, free: 3.504 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001355/0.359, allocations: 0.849 MB / 391.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.3601, allocations: 419.3 kB / 391.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3601, allocations: 1.281 kB / 391.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.3607, allocations: 222.1 kB / 392 MB, free: 2.453 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.361, allocations: 45.95 kB / 392.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005258/0.3663, allocations: 2.998 MB / 395.1 MB, free: 484 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.3666, allocations: 0.7521 MB / 395.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001903/0.3668, allocations: 32.16 kB / 395.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.367, allocations: 79.36 kB / 395.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of SimCode: time 1.282e-06/0.367, allocations: 0 / 395.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04763/0.4146, allocations: 6.798 MB / 402.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.43, allocations: 19.92 kB / 402.7 MB, free: 13.59 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches