Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, 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.001811/0.001811, 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.202/1.202, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001099, allocations: 62.09 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07573/0.07685, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004058/0.08093, allocations: 3.377 MB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.08226, allocations: 0.8571 MB / 361.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.08247, allocations: 8 kB / 361.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.08265, allocations: 67.36 kB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.08288, allocations: 122.9 kB / 362 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.08321, allocations: 147.8 kB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.08365, allocations: 0.4941 MB / 362.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.08392, allocations: 169 kB / 362.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000245/0.08417, allocations: 191.4 kB / 363 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.0844, allocations: 199.1 kB / 363.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.615e-05/0.08448, allocations: 52 kB / 363.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.794e-05/0.08458, allocations: 52 kB / 363.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.87e-05/0.08465, allocations: 103.7 kB / 363.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.08483, allocations: 226.9 kB / 363.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004253/0.08527, allocations: 0.5609 MB / 364.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.08528, allocations: 0 / 364.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.08528, allocations: 0 / 364.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.0853, allocations: 0 / 364.2 MB, free: 7.348 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001016/0.08632, allocations: 0.698 MB / 364.9 MB, free: 6.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.08636, allocations: 12.03 kB / 364.9 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.254e-05/0.08644, allocations: 74.72 kB / 365 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.08661, allocations: 64.3 kB / 365 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.08693, allocations: 320.6 kB / 365.4 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.08696, allocations: 21.38 kB / 365.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.087, allocations: 39.94 kB / 365.4 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.0876, allocations: 386.2 kB / 365.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.08762, allocations: 0 / 365.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.08767, allocations: 16 kB / 365.8 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.08768, allocations: 12 kB / 365.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005709/0.08826, allocations: 303.7 kB / 366.1 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.09024, allocations: 1.447 MB / 367.6 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005847/0.09084, allocations: 242.7 kB / 367.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.09105, allocations: 92.81 kB / 367.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.09108, allocations: 7.984 kB / 367.9 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.09111, allocations: 34.56 kB / 367.9 MB, free: 3.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.212e-06/0.09111, allocations: 0 / 367.9 MB, free: 3.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002079/0.0932, allocations: 0.7549 MB / 368.7 MB, free: 2.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.09324, allocations: 59.28 kB / 368.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.09355, allocations: 316.4 kB / 369.1 MB, free: 2.195 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.09357, allocations: 29.7 kB / 369.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.0937, allocations: 227.7 kB / 369.3 MB, free: 1.934 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.09375, allocations: 55.2 kB / 369.4 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.771e-05/0.09383, allocations: 49.7 kB / 369.4 MB, free: 1.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.09395, allocations: 334.8 kB / 369.7 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.09415, allocations: 83.95 kB / 369.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.0944, allocations: 165.4 kB / 370 MB, free: 1.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000445/0.09486, allocations: 247.6 kB / 370.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.09487, allocations: 0 / 370.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000954/0.09583, allocations: 430.7 kB / 370.6 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.09585, allocations: 10.97 kB / 370.7 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.09587, allocations: 0 / 370.7 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004045/0.09628, allocations: 121.6 kB / 370.8 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.09643, allocations: 39.98 kB / 370.8 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.127/0.2235, allocations: 3.562 MB / 374.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.2237, allocations: 35.25 kB / 374.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.2238, allocations: 12.98 kB / 374.4 MB, free: 17.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.2239, allocations: 162.3 kB / 374.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.2239, allocations: 30.28 kB / 374.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.44e-05/0.224, allocations: 32.23 kB / 374.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.224, allocations: 5.312 kB / 374.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.224, allocations: 1.797 kB / 374.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.224, allocations: 0.5156 kB / 374.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.2243, allocations: 371.1 kB / 375 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2243, allocations: 0 / 375 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.139e-05/0.2244, allocations: 16.98 kB / 375 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003169/0.2247, allocations: 122 kB / 375.1 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.2247, allocations: 1.094 kB / 375.1 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/0.2272, allocations: 3.46 MB / 378.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2272, allocations: 8.281 kB / 378.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007958/0.228, allocations: 440.2 kB / 379 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.2281, allocations: 102.3 kB / 379.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.2281, allocations: 5.766 kB / 379.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.2283, allocations: 29.34 kB / 379.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.165e-05/0.2284, allocations: 15.25 kB / 379.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.2284, allocations: 8.406 kB / 379.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001692/0.2286, allocations: 222.8 kB / 379.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2286, allocations: 4 kB / 379.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000418/0.229, allocations: 99.64 kB / 379.5 MB, free: 13.37 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008766/0.2299, allocations: 0.9691 MB / 380.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009086/0.2308, allocations: 0.5021 MB / 381 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2308, allocations: 1.531 kB / 381 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.2311, allocations: 355.5 kB / 381.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.2315, allocations: 45.38 kB / 381.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003638/0.2352, allocations: 3.269 MB / 384.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.2354, allocations: 0.7838 MB / 385.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.263e-05/0.2355, allocations: 28.39 kB / 385.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.395e-05/0.2356, allocations: 101.6 kB / 385.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2356, allocations: 0 / 385.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.659/4.895, allocations: 7.012 MB / 392.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/17.91, allocations: 5.016 kB / 392.6 MB, free: 7.262 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches