Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001555/0.001555, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001952/0.001952, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3049, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00486/0.3098, allocations: 2.952 MB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.3116, allocations: 0.7907 MB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002868/0.3119, allocations: 4 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.3121, allocations: 47.5 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.3124, allocations: 107.1 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/0.3128, allocations: 111.8 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004378/0.3132, allocations: 414.2 kB / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002536/0.3135, allocations: 135.2 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000256/0.3137, allocations: 159.4 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.314, allocations: 159.3 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.298e-05/0.314, allocations: 36 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.402e-05/0.3141, allocations: 44 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.45e-05/0.3142, allocations: 83.67 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.3144, allocations: 179.2 kB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004334/0.3148, allocations: 437.3 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3148, allocations: 4 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3149, allocations: 0 / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.3149, allocations: 0 / 414.4 MB, free: 11.9 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009551/0.3158, allocations: 0.6282 MB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3159, allocations: 12.03 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.487e-05/0.3159, allocations: 62.67 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.3161, allocations: 52.62 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.3165, allocations: 288.9 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.3166, allocations: 20.94 kB / 415.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.3166, allocations: 28.38 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.3171, allocations: 284.7 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.3171, allocations: 3.938 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.3172, allocations: 12 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.3172, allocations: 4 kB / 415.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003788/0.3176, allocations: 206.2 kB / 416 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.3191, allocations: 1.152 MB / 417.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004712/0.3196, allocations: 218.1 kB / 417.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002762/0.3199, allocations: 140.8 kB / 417.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.3199, allocations: 4 kB / 417.5 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.3202, allocations: 178.2 kB / 417.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.382e-06/0.3202, allocations: 0 / 417.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001356/0.3216, allocations: 0.5147 MB / 418.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.301e-05/0.3217, allocations: 136.5 kB / 418.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.3219, allocations: 241 kB / 418.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.322, allocations: 29.7 kB / 418.6 MB, free: 7.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.3221, allocations: 176.7 kB / 418.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.621e-05/0.3222, allocations: 71.42 kB / 418.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.751e-05/0.3222, allocations: 49.66 kB / 418.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3224, allocations: 330.8 kB / 419.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.3225, allocations: 71.97 kB / 419.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.3227, allocations: 121.1 kB / 419.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.323, allocations: 179.3 kB / 419.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.323, allocations: 0 / 419.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004813/0.3235, allocations: 294.1 kB / 419.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3235, allocations: 8.094 kB / 419.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3235, allocations: 4 kB / 419.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003257/0.3239, allocations: 84.8 kB / 419.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.324, allocations: 35.92 kB / 420 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.3262, allocations: 2.131 MB / 422.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.3264, allocations: 35.91 kB / 422.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.3265, allocations: 15.94 kB / 422.1 MB, free: 3.645 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.3266, allocations: 153.8 kB / 422.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.3267, allocations: 27.8 kB / 422.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.351e-05/0.3267, allocations: 30.17 kB / 422.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3268, allocations: 4.062 kB / 422.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3268, allocations: 7.938 kB / 422.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3268, allocations: 0 / 422.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009743/0.3278, allocations: 0.7689 MB / 423.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3278, allocations: 4 kB / 423.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.3279, allocations: 19.98 kB / 423.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003498/0.3282, allocations: 88.83 kB / 423.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.3283, allocations: 11.94 kB / 423.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.3304, allocations: 2.143 MB / 425.4 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3304, allocations: 80 / 425.4 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006367/0.331, allocations: 457 kB / 425.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3312, allocations: 128.9 kB / 426 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.3312, allocations: 7.984 kB / 426 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.3314, allocations: 19.98 kB / 426 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.436e-05/0.3315, allocations: 31.95 kB / 426 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.3316, allocations: 4.062 kB / 426 MB, free: 15.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001622/0.3317, allocations: 184.5 kB / 426.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3317, allocations: 0 / 426.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004297/0.3322, allocations: 87.89 kB / 426.3 MB, free: 15.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009557/0.3331, allocations: 0.9989 MB / 427.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006425/0.3338, allocations: 358.5 kB / 427.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3338, allocations: 0 / 427.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003874/0.3342, allocations: 274.2 kB / 427.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.3346, allocations: 52.44 kB / 428 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003673/0.3383, allocations: 2.797 MB / 430.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.3387, allocations: 0.7678 MB / 431.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.3388, allocations: 14.3 kB / 431.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.3389, allocations: 83.41 kB / 431.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.339, allocations: 0 / 431.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03257/0.3715, allocations: 7.594 MB / 439.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.63, allocations: 14.94 kB / 439.2 MB, free: 2.301 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches