Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001487/0.001487, 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.001594/0.001594, 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.397/1.397, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2334, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003617/0.237, allocations: 2.803 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.2381, allocations: 0.6777 MB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.2383, allocations: 4 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.2385, allocations: 43.56 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002044/0.2387, allocations: 91.19 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.239, allocations: 91.83 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004646/0.2395, allocations: 374.5 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.2398, allocations: 126.9 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.24, allocations: 139.5 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.2403, allocations: 167.3 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.929e-05/0.2403, allocations: 36 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.191e-05/0.2404, allocations: 32 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.433e-05/0.2405, allocations: 71.75 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.2406, allocations: 167.2 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003635/0.241, allocations: 376.4 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.241, allocations: 0 / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.241, allocations: 4 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.241, allocations: 0 / 413.9 MB, free: 12.33 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001213/0.2423, allocations: 0.6536 MB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2423, allocations: 12.03 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.2424, allocations: 58.73 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.266e-05/0.2425, allocations: 40.55 kB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.2428, allocations: 280.6 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.2429, allocations: 20.94 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.2429, allocations: 24.36 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006527/0.2436, allocations: 303.5 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2436, allocations: 0 / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.2436, allocations: 12 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.2436, allocations: 4 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008048/0.2444, allocations: 261.5 kB / 415.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.2461, allocations: 1.078 MB / 416.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007734/0.2469, allocations: 210.5 kB / 416.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.2472, allocations: 100.8 kB / 417 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.2472, allocations: 4 kB / 417 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004338/0.2477, allocations: 157.9 kB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.2477, allocations: 0 / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002062/0.2497, allocations: 0.5183 MB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.025e-05/0.2498, allocations: 106.8 kB / 417.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.2501, allocations: 282.7 kB / 418 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.2501, allocations: 29.69 kB / 418.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2503, allocations: 207.5 kB / 418.3 MB, free: 7.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.2503, allocations: 35.45 kB / 418.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.443e-05/0.2504, allocations: 53.94 kB / 418.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2505, allocations: 330.8 kB / 418.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.2509, allocations: 92.16 kB / 418.8 MB, free: 7.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.2513, allocations: 202.1 kB / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006852/0.252, allocations: 313.3 kB / 419.3 MB, free: 6.574 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.252, allocations: 4 kB / 419.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001174/0.2532, allocations: 419.8 kB / 419.7 MB, free: 6.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/0.2532, allocations: 37.7 kB / 419.7 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.2532, allocations: 7.938 kB / 419.7 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.2536, allocations: 72.73 kB / 419.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.2538, allocations: 43.97 kB / 419.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002361/0.2562, allocations: 1.719 MB / 421.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.2565, allocations: 55.72 kB / 421.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.2565, allocations: 8 kB / 421.6 MB, free: 4.059 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.0001476/0.2567, allocations: 153.7 kB / 421.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.901e-05/0.2567, allocations: 23.72 kB / 421.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.2568, allocations: 29.7 kB / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2568, allocations: 0 / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.2568, allocations: 0 / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2568, allocations: 0 / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002693/0.2571, allocations: 317.2 kB / 422.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2571, allocations: 0 / 422.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.2572, allocations: 15.98 kB / 422.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002678/0.2575, allocations: 68.8 kB / 422.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.2575, allocations: 8 kB / 422.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.2597, allocations: 1.696 MB / 423.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2597, allocations: 0 / 423.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.2607, allocations: 317.4 kB / 424.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.2609, allocations: 112.8 kB / 424.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.2609, allocations: 4 kB / 424.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.2612, allocations: 27.97 kB / 424.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.629e-05/0.2613, allocations: 19.97 kB / 424.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.2613, allocations: 7.938 kB / 424.4 MB, free: 1.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001842/0.2615, allocations: 209.9 kB / 424.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2615, allocations: 3.938 kB / 424.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003389/0.2618, allocations: 75.84 kB / 424.7 MB, free: 0.75 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.001286/0.2631, allocations: 0.8503 MB / 425.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009994/0.2641, allocations: 417.6 kB / 425.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2641, allocations: 0 / 425.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004637/0.2646, allocations: 223.4 kB / 426.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.2649, allocations: 44.97 kB / 426.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/0.2699, allocations: 2.995 MB / 429.2 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.2702, allocations: 0.748 MB / 429.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.2703, allocations: 26.28 kB / 430 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.2704, allocations: 79.41 kB / 430 MB, free: 11.12 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2704, allocations: 0 / 430 MB, free: 11.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.3, allocations: 6.971 MB / 437 MB, free: 4.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.56, allocations: 8.875 kB / 437 MB, free: 4.301 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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