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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002265/0.002265, allocations: 184.2 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 43.92 kB / 370.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2357, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004372/0.2401, allocations: 2.591 MB / 425.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.2415, allocations: 0.6466 MB / 425.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.2417, allocations: 7.938 kB / 425.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.2419, allocations: 39.58 kB / 425.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002644/0.2421, allocations: 95.25 kB / 426 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003129/0.2425, allocations: 87.83 kB / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004917/0.2429, allocations: 362.5 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.2431, allocations: 60.7 kB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.2433, allocations: 139.5 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.2436, allocations: 127.4 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.007e-05/0.2436, allocations: 28 kB / 426.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.315e-05/0.2437, allocations: 28 kB / 426.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.968e-05/0.2437, allocations: 67.7 kB / 426.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.2439, allocations: 127.4 kB / 427 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004266/0.2443, allocations: 324.5 kB / 427.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2443, allocations: 0 / 427.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2443, allocations: 0 / 427.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.2443, allocations: 7.984 kB / 427.3 MB, free: 9.645 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001324/0.2457, allocations: 0.5625 MB / 427.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.2457, allocations: 8.031 kB / 427.9 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.89e-05/0.2458, allocations: 62.72 kB / 427.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.2459, allocations: 28.75 kB / 428 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.2463, allocations: 229.9 kB / 428.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.2463, allocations: 12.81 kB / 428.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.135e-05/0.2463, allocations: 32.3 kB / 428.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006919/0.247, allocations: 325.3 kB / 428.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.247, allocations: 0 / 428.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.2471, allocations: 11.94 kB / 428.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.2471, allocations: 11.97 kB / 428.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007501/0.2478, allocations: 241.6 kB / 428.8 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.2495, allocations: 0.8473 MB / 429.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008275/0.2503, allocations: 234.6 kB / 429.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003253/0.2506, allocations: 100.9 kB / 430 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.2507, allocations: 0 / 430 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005072/0.2512, allocations: 233.1 kB / 430.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.2512, allocations: 0 / 430.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002292/0.2535, allocations: 0.5783 MB / 430.8 MB, free: 5.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.2535, allocations: 110.8 kB / 430.9 MB, free: 5.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.2538, allocations: 261.9 kB / 431.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.2539, allocations: 33.69 kB / 431.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.254, allocations: 180 kB / 431.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/0.254, allocations: 43.67 kB / 431.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.575e-05/0.2541, allocations: 45.66 kB / 431.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2543, allocations: 330.8 kB / 431.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003584/0.2546, allocations: 129.6 kB / 431.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.2551, allocations: 249 kB / 432.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.2558, allocations: 267.1 kB / 432.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.2558, allocations: 8 kB / 432.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001248/0.257, allocations: 469.3 kB / 432.9 MB, free: 3.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.2571, allocations: 29.7 kB / 432.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2571, allocations: 4 kB / 432.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/0.2574, allocations: 80.86 kB / 433 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.2576, allocations: 35.97 kB / 433 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.2603, allocations: 1.839 MB / 434.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.2606, allocations: 47.88 kB / 434.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.2607, allocations: 12 kB / 434.9 MB, free: 1.527 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.0001619/0.2608, allocations: 145.3 kB / 435.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-05/0.2609, allocations: 31.78 kB / 435.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.858e-05/0.2609, allocations: 17.78 kB / 435.1 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2609, allocations: 4 kB / 435.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2609, allocations: 3.984 kB / 435.1 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2609, allocations: 0 / 435.1 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002714/0.2612, allocations: 244.7 kB / 435.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2612, allocations: 0 / 435.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.2613, allocations: 23.97 kB / 435.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000277/0.2616, allocations: 80.73 kB / 435.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.2616, allocations: 3.938 kB / 435.5 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/0.2639, allocations: 1.647 MB / 437.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2639, allocations: 3.938 kB / 437.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.265, allocations: 357.6 kB / 437.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.2651, allocations: 27.97 kB / 437.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.2651, allocations: 8 kB / 437.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.2654, allocations: 31.95 kB / 437.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.038e-05/0.2654, allocations: 23.97 kB / 437.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.2655, allocations: 0 / 437.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2657, allocations: 189.2 kB / 437.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2657, allocations: 0 / 437.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003737/0.266, allocations: 79.88 kB / 437.8 MB, free: 14.45 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: 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.001409/0.2675, allocations: 0.8843 MB / 438.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.2685, allocations: 435.4 kB / 439.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2685, allocations: 4 kB / 439.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.269, allocations: 219 kB / 439.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.2693, allocations: 46.09 kB / 439.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/0.2747, allocations: 3.038 MB / 442.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.2749, allocations: 142.1 kB / 442.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.2751, allocations: 26.28 kB / 442.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.2752, allocations: 79.41 kB / 442.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2752, allocations: 0 / 442.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03839/0.3136, allocations: 7.032 MB / 449.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.75, allocations: 6.734 kB / 449.7 MB, free: 2.488 MB / 350.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv","/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) [Timeout 660] "Error: Could not read variable opAmp.out.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.198582141660154]