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.001231/0.001232, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001963/0.001963, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.91 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3242, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004584/0.3289, allocations: 3.376 MB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.3305, allocations: 0.8649 MB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.3307, allocations: 4 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.3309, allocations: 67.36 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.3312, allocations: 126.9 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003845/0.3316, allocations: 151.8 kB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004906/0.3321, allocations: 0.4902 MB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000301/0.3324, allocations: 177 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.3327, allocations: 187.3 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.3329, allocations: 199.1 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.234e-05/0.333, allocations: 52 kB / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.3331, allocations: 52 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.685e-05/0.3332, allocations: 99.69 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.3334, allocations: 222.9 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000528/0.3339, allocations: 0.5623 MB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3339, allocations: 4 kB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3339, allocations: 0 / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.3339, allocations: 0 / 415.4 MB, free: 10.9 MB / 334.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.001181/0.3351, allocations: 0.7096 MB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3352, allocations: 8.031 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.039e-05/0.3353, allocations: 78.59 kB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.3355, allocations: 52.45 kB / 416.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.336, allocations: 324.6 kB / 416.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.336, allocations: 25.38 kB / 416.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/0.3361, allocations: 39.94 kB / 416.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.3367, allocations: 382.2 kB / 417 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3368, allocations: 0 / 417 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.3368, allocations: 20 kB / 417 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.3368, allocations: 11.98 kB / 417 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006088/0.3374, allocations: 307.7 kB / 417.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.3395, allocations: 1.432 MB / 418.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006188/0.3402, allocations: 230.7 kB / 419 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.3404, allocations: 100.8 kB / 419.1 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.3404, allocations: 4 kB / 419.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.3405, allocations: 34.56 kB / 419.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.3405, allocations: 0 / 419.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002237/0.3427, allocations: 0.7547 MB / 419.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.3428, allocations: 59.34 kB / 419.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.3431, allocations: 316.6 kB / 420.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.3431, allocations: 29.7 kB / 420.3 MB, free: 5.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.3433, allocations: 231.6 kB / 420.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.203e-05/0.3433, allocations: 59.19 kB / 420.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.151e-05/0.3434, allocations: 49.61 kB / 420.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3435, allocations: 338.8 kB / 420.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.3437, allocations: 83.95 kB / 421 MB, free: 4.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002489/0.344, allocations: 157.4 kB / 421.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004401/0.3444, allocations: 251.5 kB / 421.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3445, allocations: 0 / 421.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009718/0.3454, allocations: 425.6 kB / 421.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.3455, allocations: 6.969 kB / 421.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3455, allocations: 4 kB / 421.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004697/0.346, allocations: 125.6 kB / 422 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.3461, allocations: 31.98 kB / 422 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004064/0.3502, allocations: 3.556 MB / 425.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.3504, allocations: 39.7 kB / 425.6 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.3505, allocations: 16.06 kB / 425.6 MB, free: 8 kB / 334.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.0001816/0.3507, allocations: 157.8 kB / 425.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-05/0.3507, allocations: 31.56 kB / 425.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.877e-05/0.3508, allocations: 30.31 kB / 425.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3508, allocations: 0 / 425.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3508, allocations: 15.81 kB / 425.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3508, allocations: 4.078 kB / 425.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.3512, allocations: 369.3 kB / 426.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3512, allocations: 0 / 426.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.432e-05/0.3512, allocations: 11.98 kB / 426.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003392/0.3516, allocations: 117.6 kB / 426.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.3516, allocations: 4 kB / 426.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.3551, allocations: 3.472 MB / 429.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3551, allocations: 0 / 429.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008695/0.356, allocations: 440.1 kB / 430.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.467e-05/0.3561, allocations: 108.8 kB / 430.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.3561, allocations: 0 / 430.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.3563, allocations: 28.16 kB / 430.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.3564, allocations: 15.92 kB / 430.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.3564, allocations: 12 kB / 430.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.3566, allocations: 223.1 kB / 430.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3566, allocations: 4 kB / 430.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004809/0.3571, allocations: 99.69 kB / 430.7 MB, free: 10.52 MB / 350.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.001166/0.3583, allocations: 0.9673 MB / 431.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.3594, allocations: 0.5051 MB / 432.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3594, allocations: 0 / 432.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004124/0.3598, allocations: 349.7 kB / 432.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.3602, allocations: 44.36 kB / 432.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.3648, allocations: 3.263 MB / 435.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.3651, allocations: 0.7756 MB / 436.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.3652, allocations: 34.94 kB / 436.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.3654, allocations: 107.3 kB / 436.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3654, allocations: 0 / 436.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.3981, allocations: 7.282 MB / 444 MB, free: 13.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.89, allocations: 11.95 kB / 444 MB, free: 13.09 MB / 366.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