Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 114 kB / 17.06 MB, free: 6.016 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.001952/0.001952, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3205, allocations: 49.44 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005296/0.3258, allocations: 3.363 MB / 403.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.3276, allocations: 0.7949 MB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3278, allocations: 11.94 kB / 404.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.328, allocations: 63.36 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.3283, allocations: 115 kB / 404.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.3287, allocations: 143.8 kB / 404.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004948/0.3292, allocations: 0.4941 MB / 405.2 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.3295, allocations: 165 kB / 405.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.3298, allocations: 191.3 kB / 405.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.33, allocations: 195.2 kB / 405.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.808e-05/0.3301, allocations: 48 kB / 405.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.191e-05/0.3302, allocations: 52 kB / 405.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.236e-05/0.3303, allocations: 103.5 kB / 406 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.3305, allocations: 223 kB / 406.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006857/0.3312, allocations: 0.5632 MB / 406.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3312, allocations: 4 kB / 406.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3312, allocations: 0 / 406.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.3312, allocations: 0 / 406.8 MB, free: 2.273 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001264/0.3325, allocations: 0.7054 MB / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.3326, allocations: 12.03 kB / 407.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.705e-05/0.3327, allocations: 70.72 kB / 407.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.732e-05/0.3328, allocations: 48.66 kB / 407.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.3333, allocations: 316.8 kB / 407.9 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.3333, allocations: 29.38 kB / 407.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.3334, allocations: 39.88 kB / 408 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007025/0.3341, allocations: 394.2 kB / 408.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3341, allocations: 0 / 408.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.781e-05/0.3341, allocations: 16 kB / 408.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3341, allocations: 8 kB / 408.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006561/0.3348, allocations: 303.8 kB / 408.7 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.3371, allocations: 1.436 MB / 410.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006486/0.3378, allocations: 241.7 kB / 410.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.338, allocations: 92.81 kB / 410.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.338, allocations: 4 kB / 410.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.3381, allocations: 42.56 kB / 410.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.134e-06/0.3381, allocations: 0 / 410.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002345/0.3404, allocations: 0.7511 MB / 411.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.3405, allocations: 59.34 kB / 411.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/0.3409, allocations: 311.3 kB / 411.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.3409, allocations: 33.7 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.3411, allocations: 228.2 kB / 411.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.3411, allocations: 67.47 kB / 411.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.673e-05/0.3412, allocations: 53.66 kB / 412 MB, free: 12.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3414, allocations: 334.8 kB / 412.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.3416, allocations: 95.83 kB / 412.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.3419, allocations: 153.4 kB / 412.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004931/0.3424, allocations: 252 kB / 412.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3424, allocations: 0 / 412.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009994/0.3434, allocations: 426.9 kB / 413.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.3434, allocations: 4 kB / 413.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.3435, allocations: 4 kB / 413.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/0.3439, allocations: 117.7 kB / 413.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.3441, allocations: 47.84 kB / 413.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00436/0.3484, allocations: 3.564 MB / 416.9 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.3487, allocations: 35.77 kB / 417 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.3488, allocations: 8 kB / 417 MB, free: 7.375 MB / 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.0002083/0.349, allocations: 161.8 kB / 417.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.619e-05/0.349, allocations: 31.75 kB / 417.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.681e-05/0.3491, allocations: 30.3 kB / 417.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3491, allocations: 0 / 417.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3491, allocations: 4 kB / 417.2 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3491, allocations: 3.984 kB / 417.2 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004844/0.3496, allocations: 365.4 kB / 417.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3496, allocations: 96 / 417.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.798e-05/0.3497, allocations: 11.98 kB / 417.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003797/0.3501, allocations: 125.5 kB / 417.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.3501, allocations: 0 / 417.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004116/0.3543, allocations: 3.467 MB / 421.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3543, allocations: 4.062 kB / 421.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000965/0.3553, allocations: 436.7 kB / 421.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.3554, allocations: 104.9 kB / 421.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.3554, allocations: 4 kB / 421.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.3557, allocations: 31.97 kB / 421.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.3558, allocations: 11.98 kB / 421.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.3558, allocations: 4 kB / 421.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003024/0.3561, allocations: 221.9 kB / 422 MB, free: 2 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.765e-06/0.3561, allocations: 0 / 422 MB, free: 2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005598/0.3567, allocations: 107.7 kB / 422.1 MB, free: 1.895 MB / 334.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.001319/0.358, allocations: 0.9748 MB / 423.1 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.3592, allocations: 0.5128 MB / 423.6 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.3593, allocations: 0 / 423.6 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.3598, allocations: 349.7 kB / 423.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004421/0.3602, allocations: 61.56 kB / 424 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005456/0.3657, allocations: 3.255 MB / 427.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.3662, allocations: 0.7795 MB / 428 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.3663, allocations: 22.98 kB / 428 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.3665, allocations: 103.4 kB / 428.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3665, allocations: 0 / 428.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03969/0.4062, allocations: 7.12 MB / 435.2 MB, free: 4.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.33, allocations: 7.812 kB / 435.3 MB, free: 4.633 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches