Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",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.001246/0.001247, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001194/0.001195, allocations: 193.4 kB / 18 MB, free: 5.172 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 47.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2406, allocations: 49.44 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003831/0.2444, allocations: 2.762 MB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.2456, allocations: 0.6739 MB / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.2457, allocations: 4 kB / 403.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.2459, allocations: 39.58 kB / 403.8 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001791/0.246, allocations: 87.25 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.2463, allocations: 103.8 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003919/0.2467, allocations: 358.5 kB / 404.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.2469, allocations: 76.72 kB / 404.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.2471, allocations: 135.4 kB / 404.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.2473, allocations: 151.4 kB / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-05/0.2473, allocations: 28 kB / 404.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.438e-05/0.2474, allocations: 28 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.658e-05/0.2475, allocations: 63.77 kB / 404.8 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.2476, allocations: 147.3 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003682/0.248, allocations: 325.8 kB / 405.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.248, allocations: 4 kB / 405.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.248, allocations: 0 / 405.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.248, allocations: 0 / 405.2 MB, free: 3.812 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001251/0.2493, allocations: 0.6532 MB / 405.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.2493, allocations: 8.031 kB / 405.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.029e-05/0.2494, allocations: 54.73 kB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.865e-05/0.2495, allocations: 36.67 kB / 406 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.2498, allocations: 275.9 kB / 406.2 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.2499, allocations: 20.81 kB / 406.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.2499, allocations: 20.38 kB / 406.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006874/0.2506, allocations: 273.9 kB / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2506, allocations: 0 / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.2507, allocations: 12 kB / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2507, allocations: 8 kB / 406.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000779/0.2515, allocations: 241.5 kB / 406.8 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.253, allocations: 0.9444 MB / 407.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008523/0.2539, allocations: 242.5 kB / 408 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003514/0.2543, allocations: 104.8 kB / 408.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.2543, allocations: 4 kB / 408.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004701/0.2548, allocations: 173.8 kB / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.352e-06/0.2548, allocations: 0 / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002395/0.2572, allocations: 0.6575 MB / 408.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.2573, allocations: 106.8 kB / 409 MB, free: 15.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.2576, allocations: 274.5 kB / 409.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.2576, allocations: 33.92 kB / 409.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.2577, allocations: 168.2 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.357e-05/0.2578, allocations: 55.52 kB / 409.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.545e-05/0.2579, allocations: 41.7 kB / 409.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.258, allocations: 338.8 kB / 409.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003667/0.2584, allocations: 95.92 kB / 410 MB, free: 14.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004117/0.2588, allocations: 172.2 kB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000711/0.2595, allocations: 268.3 kB / 410.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2595, allocations: 0 / 410.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001244/0.2608, allocations: 433.7 kB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.163e-05/0.2609, allocations: 37.69 kB / 410.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.2609, allocations: 4 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003809/0.2613, allocations: 76.86 kB / 411 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.2615, allocations: 43.91 kB / 411 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.2643, allocations: 1.959 MB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.2646, allocations: 47.8 kB / 413 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.2646, allocations: 12 kB / 413 MB, free: 11.46 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.2648, allocations: 133.8 kB / 413.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.034e-05/0.2648, allocations: 31.86 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.753e-05/0.2649, allocations: 25.83 kB / 413.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2649, allocations: 4 kB / 413.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.2649, allocations: 0 / 413.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2649, allocations: 0 / 413.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.2652, allocations: 285.4 kB / 413.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2652, allocations: 4 kB / 413.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.2654, allocations: 23.97 kB / 413.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002879/0.2656, allocations: 84.72 kB / 413.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.2657, allocations: 4 kB / 413.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00237/0.268, allocations: 1.762 MB / 415.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2681, allocations: 0 / 415.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.2692, allocations: 357.6 kB / 415.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.092e-05/0.2693, allocations: 104.8 kB / 415.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/0.2693, allocations: 8 kB / 415.9 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.2696, allocations: 35.97 kB / 415.9 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.253e-05/0.2696, allocations: 19.97 kB / 415.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.2697, allocations: 4 kB / 415.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001943/0.2699, allocations: 190 kB / 416.1 MB, free: 8.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.924e-06/0.2699, allocations: 0 / 416.1 MB, free: 8.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003562/0.2702, allocations: 75.83 kB / 416.2 MB, free: 8.098 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001453/0.2717, allocations: 0.9018 MB / 417.1 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.2727, allocations: 404.5 kB / 417.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2727, allocations: 448 / 417.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005/0.2732, allocations: 242.5 kB / 417.7 MB, free: 6.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2736, allocations: 57.83 kB / 417.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00522/0.2788, allocations: 2.918 MB / 420.7 MB, free: 3.379 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.2792, allocations: 0.748 MB / 421.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.2793, allocations: 30.27 kB / 421.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.2794, allocations: 71.42 kB / 421.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2795, allocations: 0 / 421.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03273/0.3122, allocations: 6.334 MB / 427.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.83, allocations: 8 kB / 427.9 MB, free: 12.34 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,k,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,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,vHys,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