Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_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.001213/0.001213, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001187/0.001187, allocations: 196 kB / 18 MB, free: 5.074 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.403/1.403, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 39.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2793, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004072/0.2834, allocations: 2.791 MB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.2847, allocations: 0.635 MB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.2849, allocations: 7.938 kB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.285, allocations: 43.56 kB / 403.7 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.2853, allocations: 87.19 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.2856, allocations: 91.83 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004394/0.286, allocations: 382.5 kB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002381/0.2863, allocations: 118.9 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.2864, allocations: 151.4 kB / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.2867, allocations: 163.2 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.063e-05/0.2867, allocations: 36 kB / 404.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.076e-05/0.2868, allocations: 32 kB / 404.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.678e-05/0.2869, allocations: 71.75 kB / 404.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.2871, allocations: 171.2 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004372/0.2875, allocations: 373.5 kB / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2875, allocations: 0 / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2875, allocations: 0 / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2876, allocations: 8 kB / 405.4 MB, free: 3.652 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.001354/0.2889, allocations: 0.6611 MB / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.289, allocations: 11.97 kB / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.956e-05/0.289, allocations: 58.73 kB / 406.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.769e-05/0.2891, allocations: 32.75 kB / 406.1 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.2895, allocations: 284.7 kB / 406.4 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.2895, allocations: 16.94 kB / 406.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.2896, allocations: 24.38 kB / 406.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000687/0.2903, allocations: 303.5 kB / 406.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.2903, allocations: 0 / 406.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.2903, allocations: 12 kB / 406.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.2903, allocations: 4 kB / 406.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008269/0.2912, allocations: 257.5 kB / 407 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.2929, allocations: 1.078 MB / 408.1 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008154/0.2937, allocations: 214.5 kB / 408.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.2941, allocations: 92.78 kB / 408.4 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.2941, allocations: 4 kB / 408.4 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004603/0.2946, allocations: 169.8 kB / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.2946, allocations: 0 / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002211/0.2968, allocations: 0.5149 MB / 409.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.791e-05/0.2969, allocations: 102.8 kB / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.2973, allocations: 290.6 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.2973, allocations: 29.7 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.2975, allocations: 200 kB / 409.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.16e-05/0.2975, allocations: 47.61 kB / 409.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.2977, allocations: 53.89 kB / 409.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2978, allocations: 338.8 kB / 410.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.2982, allocations: 96.09 kB / 410.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.2986, allocations: 206.1 kB / 410.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008466/0.2995, allocations: 316.5 kB / 410.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2995, allocations: 0 / 410.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001901/0.3014, allocations: 419.7 kB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.232e-05/0.3015, allocations: 37.83 kB / 411.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.3015, allocations: 15.92 kB / 411.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005177/0.3021, allocations: 68.8 kB / 411.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003139/0.3024, allocations: 47.91 kB / 411.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003803/0.3062, allocations: 1.719 MB / 413 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005509/0.3068, allocations: 51.75 kB / 413.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.3068, allocations: 12.06 kB / 413.1 MB, free: 11.36 MB / 334.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.0002496/0.3071, allocations: 149.7 kB / 413.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.34e-05/0.3072, allocations: 23.86 kB / 413.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.682e-05/0.3073, allocations: 29.7 kB / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3073, allocations: 3.938 kB / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3073, allocations: 0 / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3073, allocations: 0 / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.3077, allocations: 305.4 kB / 413.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3078, allocations: 3.984 kB / 413.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.3079, allocations: 19.98 kB / 413.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003696/0.3083, allocations: 68.8 kB / 413.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.3084, allocations: 0 / 413.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.3107, allocations: 1.704 MB / 415.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3108, allocations: 0 / 415.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3119, allocations: 317.5 kB / 415.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.312, allocations: 109 kB / 415.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.351e-05/0.3121, allocations: 11.98 kB / 415.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.3123, allocations: 27.97 kB / 415.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.731e-05/0.3124, allocations: 23.97 kB / 415.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3125, allocations: 7.938 kB / 415.9 MB, free: 8.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.3127, allocations: 198 kB / 416.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3127, allocations: 0 / 416.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003825/0.3131, allocations: 79.89 kB / 416.1 MB, free: 8.059 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: 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.001512/0.3146, allocations: 0.851 MB / 417 MB, free: 7.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.3158, allocations: 417.9 kB / 417.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3158, allocations: 0 / 417.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.3163, allocations: 227.2 kB / 417.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.3166, allocations: 33.42 kB / 417.7 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00557/0.3222, allocations: 3.017 MB / 420.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.3226, allocations: 0.748 MB / 421.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.3227, allocations: 26.28 kB / 421.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.3228, allocations: 79.41 kB / 421.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3229, allocations: 4 kB / 421.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/0.3574, allocations: 6.792 MB / 428.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.02, allocations: 19.17 kB / 428.3 MB, free: 11.74 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,vIn.signalSource.y Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,k,opAmp.VMax.i,opAmp.VMax.v,opAmp.VMin.i,opAmp.VMin.v,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.vin,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v,vSourceNeg.V,vSourceNeg.i,vSourceNeg.n.i,vSourceNeg.n.v,vSourceNeg.p.i,vSourceNeg.p.v,vSourceNeg.v,vSourcePos.V,vSourcePos.i,vSourcePos.n.i,vSourcePos.n.v,vSourcePos.p.i,vSourcePos.p.v,vSourcePos.v